-
Notifications
You must be signed in to change notification settings - Fork 511
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
rollup resolve issue for commonJS packages (applicationinsights) #1726
Comments
this issue seems to be introduced in 2.6 |
Thanks for reporting it here! If you had a chance to scope it down to a minimal nitro only reproduction that would be great otherwise will check it soon if can find a solution for esm compatibility. |
Here's the nitro reproduction 😃 We have some issues:
|
Finally found the commit. Seems like upgrading well the current workaround for nitro and nuxt projects is to set the resolution of |
Any news on it? |
@alimozdemir you can set the resolution of |
Maybe I'm misunderstanding something, but your linked stackblitz seem to throw the same exception in the terminal. The same happens when I try it on my local machine. |
Can you try with pnpm or yarn ? forcing the |
Ah, that's unfortunate. In my case, I'm unable to use any other package manager. Thanks for the quick reply! |
Just popping by again to mention that the same can be achieved in npm by adding the following to "overrides": {
"mlly": "1.4.0"
} and then running I'll get back if I figure out some better solution though! |
* update all dependencies and add resolution for error from package nitrojs/nitro#1726 * fix og:image
Downgrading mlly to 1.4.0 doesn't work for me either. Unable to deploy our app :/ |
do you have a small reproduction please ? |
Hey! Thanks for a quick reply. I don't have a reproduction, but it's definitely a problem with an import of Sheet JS. Disabling the import completely fixes the build.
package.json
|
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
https://stackblitz.com/edit/nuxt-starter-z1b17v?file=server%2Futils%2Fapplicationinsights.ts,server%2Fmiddleware%2Fapplicationinsights.ts
Describe the bug
Hi 👋
Since 3.7, importing applicationinsights breaks the whole app. This was working with 3.6.5.
I believe this is probably an issue with Nitro instead of Nuxt.
Why didn't microsoft release ESM for this package ? 😱
Additional context
cloned from nuxt/nuxt#23200
Logs
No response
The text was updated successfully, but these errors were encountered: