We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Operating System: Windows_NT Node Version: v16.20.0 Nuxt Version: 3.7.3 CLI Version: 3.8.3 Nitro Version: 2.6.3 Package Manager: yarn@1.22.19 Builder: - User Config: - Runtime Modules: - Build Modules: -
Nuxt (application insights): https://stackblitz.com/edit/nuxt-starter-z1b17v?file=server%2Futils%2Fapplicationinsights.ts,server%2Fmiddleware%2Fapplicationinsights.ts Nitro (application insights): https://stackblitz.com/edit/unjs-nitro-9kdgkw?file=package.json,utils%2Fapplicationinsights.ts,middleware%2Fapplicationinsights.ts,nitro.config.ts&title=Nitro%20Starter
Mlly only (copy of applicationinsights):https://stackblitz.com/edit/node-gz9scl?file=index.mjs,withoutExportsImportInComment.mjs,applicationInsightTest.mjs
there's currently a bug with some commonJS package on nitro due to having "esm syntax" within comments because we're using a regex
hasESMSyntax can return true when having export import within a comment for example
hasESMSyntax
true
export import
Nitro issue Nuxt issue
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Environment
Operating System: Windows_NT
Node Version: v16.20.0
Nuxt Version: 3.7.3
CLI Version: 3.8.3
Nitro Version: 2.6.3
Package Manager: yarn@1.22.19
Builder: -
User Config: -
Runtime Modules: -
Build Modules: -
Reproduction
Nuxt (application insights): https://stackblitz.com/edit/nuxt-starter-z1b17v?file=server%2Futils%2Fapplicationinsights.ts,server%2Fmiddleware%2Fapplicationinsights.ts
Nitro (application insights): https://stackblitz.com/edit/unjs-nitro-9kdgkw?file=package.json,utils%2Fapplicationinsights.ts,middleware%2Fapplicationinsights.ts,nitro.config.ts&title=Nitro%20Starter
Mlly only (copy of applicationinsights):https://stackblitz.com/edit/node-gz9scl?file=index.mjs,withoutExportsImportInComment.mjs,applicationInsightTest.mjs
Describe the bug
there's currently a bug with some commonJS package on nitro due to having "esm syntax" within comments because we're using a regex
hasESMSyntax
can returntrue
when havingexport import
within a comment for exampleAdditional context
Nitro issue
Nuxt issue
Logs
No response
The text was updated successfully, but these errors were encountered: