Closed hermesalvesbr closed 1 week ago
I am encountering the same issue but with node:
[nitro 11:06:56 AM] ERROR RollupError: [plugin impound] This module cannot be imported in server runtime. [importing node_modules/nitropack/node_modules/crossws/dist/adapters/node.mjs from node_modules/nitropack/dist/presets/_nitro/runtime/nitro-dev.mjs]
Update: removing node_modules
and package-lock.json
and then doing a clean install fixed the issue for me
I still get an Error for Node Runtime.
ERROR RollupError: [plugin impound] This module cannot be imported in server runtime. [importing node_modules/nitropack/node_modules/ofetch/dist/node.mjs from node_modules/nitropack/dist/runtime/internal/app.mjs]
Run with Yarn dev, Nuxt 3.14.159 with Nitro 2.10.4
I get the same error here :(
Found a "workaround" - I used git to clear all ignored files (git clean -f -X -d
) and then used npm to reinstall everything. Afterwards, I could use bun to run it as normal. So does that mean it's something outside node_modules causing it, or how bun install handles things?
Same here!
@llama-for3ver i will also try it with bun, with npm the same error occurs again...
Solved this issue by updating @azure/cosmos dependency ✅
Solved this issue by updating @azure/cosmos dependency ✅
To what version? It’s been on 4.1.1 for months, and using bun update
didn’t do anything.
@llama-for3ver hm i also updated it to 4.1.1, since that update its working again
@llama-for3ver hm i also updated it to 4.1.1, since that update its working again
What PM did you use?
@llama-for3ver hm i also updated it to 4.1.1, since that update its working again
How can I do this too?
Im using npm, just change the version of @azure/cosmos in package.json and then npm install. Let me know, if it solved the problem
Im using npm, just change the version of @azure/cosmos in package.json and then npm install
In that case I'm inclined to believe its how NPM handles things, rather than the dependency itself. Can you confirm?
Yes, i think so too. It seems like the source of the problem is another at your project :/
Just encountered the same issue testing out Nuxt v3.14.159, I simply removed the node_modules
folder and the associated lockfile (in my case pnpm-lock.yaml
), now it works 👍
Environment
Reproduction
Describe the bug
Steps Taken to Resolve:
Additional context
No response
Logs