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

Failed to resolve entry for package "search-insights" #543

Closed
malulm opened this issue Aug 6, 2024 · 2 comments · Fixed by #544
Closed

Failed to resolve entry for package "search-insights" #543

malulm opened this issue Aug 6, 2024 · 2 comments · Fixed by #544
Assignees

Comments

@malulm
Copy link

malulm commented Aug 6, 2024

I'm encountering an error during the build process of a Nuxt.js application when using the [email protected] package. The error message is as follows:

[error] Nuxt Build Error: [commonjs--resolver] Failed to resolve entry for package "search-insights". The package may have incorrect main/module/exports specified in its package.json. at packageEntryFailure (node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-mCdpKltl.js:46351:15) at resolvePackageEntry (node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-mCdpKltl.js:46348:3) at tryNodeResolve (node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-mCdpKltl.js:46164:16) at Object.resolveId (node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-mCdpKltl.js:45914:19) at node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:19892:40 at async PluginDriver.hookFirstAndGetPlugin (node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:19792:28) at async resolveId (node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:18466:26) at async ModuleLoader.resolveId (node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:18869:15) at async Object.resolveId (node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-mCdpKltl.js:12802:10) at async PluginDriver.hookFirstAndGetPlugin (node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:19792:28)

This issue prevents the CommonJS resolver from locating the correct entry point for the package. The error occurs during the bundling phase, making it impossible to successfully build the application.

The error does not occur while using [email protected]

Thank you!

@josemukorivo
Copy link

experienced a similar error today, had to rollback.

@JClackett
Copy link

yeah 2.16.0 breaks typescript types

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

Successfully merging a pull request may close this issue.

4 participants