-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Nuxt >=3.6.5 : Cannot find module and RollupError: Could not resolve #22958
Comments
Start a new pull request in StackBlitz Codeflow. |
Could this be related to 3.7 issue #22918 ? |
@peteromano it might be, but this is not working with 3.6.5 I'm pretty sure about it. There is a rollup error in my case as well. If the both 3.6.5 and 3.7.0 uses the same vite-node version then it might be the same. |
edit: misread issue |
As I see, it is labeled as a minor bug on vite. Should I link this issue to vite repository? Are they going to fix it or nuxt team is going to fix it? @danielroe |
In this case it just means that the error is being emitted from our vite-node integration. I'm not in fact sure whether this is a Nuxt issue or elsewhere. In any case, it can be worked around with: export default defineNuxtConfig({
build: {
transpile: ['applicationinsights']
}
}) |
It seems like it might be workaround in the reproduction. I just tested there and it seems like it is working. In my local (windows) I received this error
|
I thought it was related with extends but it is related with server/middleware. Please see the example below |
Would you provide a more precise reproduction in that case? |
Sure, so I've been investigating it a little bit sorry about the late response. I've tried to do the same thing in the stackblitz and it seems it is working in the linux environment. In my local env (windows), when I look into the code of .nuxt/dev/index.mjs it includes applicationinsight library into index.mjs, there are a lot of codes that related with applicationinsight package. e.g. here is a reproduction link https://stackblitz.com/edit/nuxt-starter-cdamuw?file=nuxt.config.ts |
Currently, I'm facing this issue even whether it is used by "extends" or not. When I'm using this package under server/middleware, it breaks the server side and I get the above error. I think this is related to nitrojs/nitro#808 @danielroe any news on it? |
@danielroe reproduction link for "__dirname" problem on linux |
let's track upstream in nitrojs/nitro#1726. |
Environment
My local
Reproduction
Reproduction
https://stackblitz.com/edit/nuxt-starter-f5iwgw?file=app.vue
Describe the bug
In my local, I'm receiving the following error first
Then whenever I open the webpage it gives me following error
Cannot find module './AutoCollection/CorrelationContextManager' Require stack: - /home/projects/nuxt-starter-f5iwgw/applicationinsights
Additional context
I tested with Nuxt 3.6.5 and Nuxt 3.7.0.
It works in 3.5.3 without any issues.
Logs
No response
The text was updated successfully, but these errors were encountered: