Skip to content
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 Error: Could not resolve "./analyzer" from "./analyzer?commonjs-external" #806

Open
carsonbird opened this issue Feb 22, 2024 · 1 comment

Comments

@carsonbird
Copy link

carsonbird commented Feb 22, 2024

I'm running a Nuxt 3 app, in which I'm using the arangojs package on the serverside (so, an ESM node/vite server). As of yesterday, I've started getting the following error during build time, and I've traced it back to arangojs:

Rollup Error: Could not resolve "./analyzer" from "./analyzer?commonjs-external"

I'm not too familiar with these internals. Can anyone help me figure this out? I'm using arangojs ^8.7.0.

I can see that 8.7.0 came out about 8 days ago, and I probably updated my dependencies the day I started getting the error. I would bet the issue was introduced in 8.7.0.

@pluma4345
Copy link
Member

?commonjs-external is a vite-ism. You probably updated vite or one of its plugins alongside arangojs. I'm not sure what is causing the error you're seeing but it looks like vite or one of its plugins is adding that and vite/rollup is failing to resolve the module in question for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants