-
-
Notifications
You must be signed in to change notification settings - Fork 488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sourcemaps not loading with Nuxt i18n module 9.0.0 #3239
Comments
Would you be able to provide a reproduction? 🙏 More infoWhy do I need to provide a reproduction?Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making. What will happen?If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect. If How can I create a reproduction?We have a couple of templates for starting with a minimal reproduction: 👉 Reproduction starter (v8 and higher) A public GitHub repository is also perfect. 👌 Please ensure that the reproduction is as minimal as possible. See more details in our guide. You might also find these other articles interesting and/or helpful: |
I'm also facing this same issue Here's is a reproduction https://codesandbox.io/p/devbox/funny-rgb-hj2thz?workspaceId=649ba03f-26ca-46d1-89e9-81b5aa2c40d0 As you can see in .output/public/_nuxt, all the sourcemaps are invalid as they don't present any value in sources and mappings are empty |
This is also an issue with (unit) testing. I'm not even sure why i18n is involved at all. All our coverage results point to some intermediary processed files, not the original TS files. If I disable the nuxt-i18n module, everything works fine. To clarify: i18n has always been the reason our sourcemaps don't work properly. We also can't run local debugging in the IDE because of it. |
Same issue here, a downgrade to i18n v9 and Nuxt i18n to v8 did the trick, i really don't know how they can make them break so often (talking about vue i18n, last time it was my problem too) |
Can someone provide a new reproduction? the previous reproduction is no longer available.. The reproduction referenced by @marcelobotega does not include this module, I'll see if I can modify it to reproduce the issue but a new one would be preferred. The only change that comes to mind that could possibly be the source of this issue is intlify/bundle-tools#413 (/cc @userquin). Can someone check if disabling |
@BobbieGoede setting that that has no effect for us. |
We may have narrowed down the issue to a version resolution conflict, can someone confirm if adding the following override to
|
This doesnt fix the issue for me. |
Can someone provide a minimal reproduction? A stackblitz project or a github repo will do. |
If using pnpm try using |
I am using pnpm workspace, with this override in root package.json.
I have verified that the only installed version of |
I'm setting up a repro with a bare setup with unit tests that have faulty sourcemaps. Give me a minute. @BobbieGoede here's the repro, see the README for instructions on what to do. Sorry for the odd "project", it's basically our enterprise app with everything removed except some utils. |
@TheDutchCoder
|
Yes, that works in my reproduction! Interestingly: it's not even an option in the other project. I assume it's a minor version behind (9.1.0), let me upgrade and see if that works. 🙌 success! On 9.1.1 with that setting it indeed maps correctly again! |
how about using latest unplugin version without that flag disabled? |
Yes that works as well! |
nice, we can finally close this issue 🥳 |
This should be resolved upstream now, refreshing your package lockfiles and installing should be sufficient to resolve this issue (no overrides needed). We will publish a patch release in the coming days which will raise the compatible sub-dependency version, which should further ensure fix is included on install. |
Can confirm that sourcemaps are working again after recreating pnpm-lock.yaml. Thanks! |
Environment
Reproduction
Steps to reproduce:
Install and configure the Nuxt i18n module with version 9.0.0.
Run the Nuxt project in development mode (npm run dev or yarn dev).
Open the browser DevTools and attempt to debug the Nuxt i18n code.
Sourcemaps are not loaded, and the original source code is not available for debugging.
Describe the bug
Since upgrading to version 9.0.0 of the Nuxt i18n module, sourcemaps are no longer being loaded, preventing me from debugging the code in the browser. This issue makes it difficult to trace and debug the source code using browser DevTools.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: