Skip to content
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

"/*#__PURE__*/" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues. #2640

Closed
s00d opened this issue Dec 27, 2023 · 2 comments · Fixed by #2723
Labels
bundler 🔨 p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage v8

Comments

@s00d
Copy link
Contributor

s00d commented Dec 27, 2023

Environment

  • Operating System: Darwin
  • Node Version: v20.8.1
  • Nuxt Version: 3.9.0
  • CLI Version: 3.10.0
  • Nitro Version: 2.8.1
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://github.com/s00d/i18n-memory-pure

Describe the bug

pnpm i
pnpm build

Additional context

When using defineI18nRoute on the latest version of Nuxt, it now says

app.vue?vue&type=script&setup=true&lang.ts (11:16) A comment

"/#PURE/"

in "app.vue?vue&type=script&setup=true&lang.ts" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.

Logs

No response

@s00d
Copy link
Contributor Author

s00d commented Dec 27, 2023

Most likely, the same thing needs to be done as here

@kazupon kazupon added v8 🔨 p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage bundler and removed pending triage labels Dec 28, 2023
@Tennyleaz
Copy link

Just happened to me too. Got many Rollup cannot interpret due to the position of the comment errors.

npx nuxi info   
Working directory: D:/Test Web/my-project                                                                                                                         上午9:40:44
Nuxt project info:                                                                                                                                               上午9:40:44

------------------------------
- Operating System: Windows_NT
- Node Version:     v18.19.0
- Nuxt Version:     3.9.0
- CLI Version:      3.10.0
- Nitro Version:    2.8.1
- Package Manager:  [email protected]
- Builder:          -
- User Config:      devtools, app, css, modules, i18n, runtimeConfig, routeRules
- Runtime Modules:  [email protected], @pinia/[email protected], @nuxtjs/[email protected]
- Build Modules:    -
------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bundler 🔨 p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage v8
Projects
None yet
3 participants