Not descriptive build errors #9088
Unanswered
naisyrkdev
asked this question in
Help/Questions
Replies: 1 comment
-
It would be hard to help without a repro. Perhaps you can check the main/module/exports fields in your |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, my vue app had worked on remote, works locally with "vite" command but now fails every new build. Were trying about 3 days how to fix it, can't find problem with files listed in console. I dont understand the problem, also why
serve/run
works butbuild
fail. Any reason how to fix it?12:27:41 AM: $ npm run build
12:27:41 AM: > vuetify1@0.0.0 build
12:27:41 AM: > vite build
12:27:41 AM: vite v4.4.4 building for production...
12:27:41 AM: transforming...
12:27:42 AM: ✓ 141 modules transformed.
12:27:42 AM: ✓ built in 1.02s
12:27:42 AM: [commonjs--resolver] Failed to resolve entry for package /opt/build/repo. The package may have incorrect main/module/exports specified in its package.json.
12:27:42 AM: error during build:
12:27:42 AM:** Error: Failed to resolve entry for package /opt/build/repo. The package may have incorrect ****main/module/exports specified in its package.json.**
12:27:42 AM: at packageEntryFailure (file:///opt/build/repo/node_modules/vite/dist/node/chunks/dep-abb4f102.js:28698:11)
12:27:42 AM: at resolvePackageEntry (file:///opt/build/repo/node_modules/vite/dist/node/chunks/dep-abb4f102.js:28695:5)
12:27:42 AM: at tryCleanFsResolve (file:///opt/build/repo/node_modules/vite/dist/node/chunks/dep-abb4f102.js:28359:28)
12:27:42 AM: at tryFsResolve (file:///opt/build/repo/node_modules/vite/dist/node/chunks/dep-abb4f102.js:28306:17)
12:27:42 AM: at Object.resolveId (file:///opt/build/repo/node_modules/vite/dist/node/chunks/dep-abb4f102.js:28102:28)
12:27:42 AM: at file:///opt/build/repo/node_modules/rollup/dist/es/shared/node-entry.js:25461:40
12:27:42 AM: at async PluginDriver.hookFirstAndGetPlugin (file:///opt/build/repo/node_modules/rollup/dist/es/shared/node-entry.js:25361:28)
12:27:42 AM: at async resolveId (file:///opt/build/repo/node_modules/rollup/dist/es/shared/node-entry.js:24035:26)
12:27:42 AM: at async ModuleLoader.resolveId (file:///opt/build/repo/node_modules/rollup/dist/es/shared/node-entry.js:24449:15)
12:27:42 AM: at async Object.resolveId (file:///opt/build/repo/node_modules/vite/dist/node/chunks/dep-abb4f102.js:7990:10)
12:27:42 AM:
12:27:42 AM: build.command failed
Beta Was this translation helpful? Give feedback.
All reactions