You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's currently an issue (again sorry 🙏) with applicationinsights node.
We have a different issue on stackblitz and windows.
On windows we have
while on stackblitz the module is not found.
The only way to fix it seems to be to force the resolution of mlly to 1.4.0.
I think it's probably due the strip comment feature for mlly hasEsmSyntax and hasCjsSyntax is behind an experimental feature flag not enabled by default.
Additional context
The issue with windows is that the absolute paths generated in .nitro/dev/index.mjs are generated without file:// for applicationinsights imports.
After manually adding them back
We have another issue which is the stackblitz one.
Logs
No response
The text was updated successfully, but these errors were encountered:
We probably cannot safely enable stripping comments for mlly until next major version that uses AST-aware stripping.
I know it is a pain for some legacy modules but making changes to CJS/ESM detection that can fixes one legacy module can break other legacy modules.
I am closing this issue because the only common reported case is applicationinsights but if there are more common legacy packages that having issues, i would be happy to see what we can do for Nitro v2 fix.
Environment
Reproduction
https://stackblitz.com/edit/unjs-nitro-starter-mhus1e?file=module%2Fmod.ts,module%2Fruntime%2Fplugin.ts,nitro.config.ts&title=Nitro%20Starter
Describe the bug
There's currently an issue (again sorry 🙏) with applicationinsights node.
We have a different issue on stackblitz and windows.
On windows we have

while on stackblitz the module is not found.
The only way to fix it seems to be to force the resolution of mlly to 1.4.0.
I think it's probably due the strip comment feature for mlly
hasEsmSyntax
andhasCjsSyntax
is behind an experimental feature flag not enabled by default.Additional context
The issue with windows is that the absolute paths generated in

.nitro/dev/index.mjs
are generated withoutfile://
for applicationinsights imports.After manually adding them back

We have another issue which is the stackblitz one.
Logs
No response
The text was updated successfully, but these errors were encountered: