You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
upgrade to nuxt@3.0.0-rc.9 and then just run npm run build
Describe the bug
I just upgraded nuxt to rc9 from rc8, and there is a error when I run npm run build
It works well after I downgrade to rc8
Additional context
No response
Logs
i Vite server warmed up in 153ms 10:53:25
√ Nitro built in 326 ms nitro 10:53:25
✘ [ERROR] Could not resolve "#build/app.config.mjs"
node_modules/nuxt/dist/app/config.mjs:3:24:
3 │ import __appConfig from "#build/app.config.mjs";
╵ ~~~~~~~~~~~~~~~~~~~~~~~
The package import "#build/app.config.mjs" is not defined in this "imports" map:
node_modules/nuxt/package.json:18:13:
18 │ "imports": {
╵ ^
You can mark the path "#build/app.config.mjs" as external to exclude it from the bundle, which
will remove this error.
ERROR 10:53:30 AM [vite] error while updating dependencies: 10:53:30
Error: Build failed with 1 error:
node_modules/nuxt/dist/app/config.mjs:3:24: ERROR: Could not resolve "#build/app.config.mjs"
at failureErrorWithLog (C:\Users\ppp\Projects\myproject\node_modules\vite\node_modules\esbuild\lib\main.js:1624:15)
at C:\Users\ppp\Projects\myproject\node_modules\vite\node_modules\esbuild\lib\main.js:1266:28
at runOnEndCallbacks (C:\Users\ppp\Projects\myproject\node_modules\vite\node_modules\esbuild\lib\main.js:1046:63)
at buildResponseToResult (C:\Users\ppp\Projects\myproject\node_modules\vite\node_modules\esbuild\lib\main.js:1264:7)
at C:\Users\ppp\Projects\myproject\node_modules\vite\node_modules\esbuild\lib\main.js:1377:14
at C:\Users\ppp\Projects\myproject\node_modules\vite\node_modules\esbuild\lib\main.js:678:9
at handleIncomingPacket (C:\Users\ppp\Projects\myproject\node_modules\vite\node_modules\esbuild\lib\main.js:775:9)
at Socket.readFromStdout (C:\Users\ppp\Projects\myproject\node_modules\vite\node_modules\esbuild\lib\main.js:644:7)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
The text was updated successfully, but these errors were encountered:
Environment
Windows_NT
v18.7.0
3.0.0-rc.9
0.5.1
npm@8.15.0
vite
css
,build
,vite
-
-
Reproduction
upgrade to
nuxt@3.0.0-rc.9
and then just runnpm run build
Describe the bug
I just upgraded nuxt to rc9 from rc8, and there is a error when I run
npm run build
It works well after I downgrade to rc8
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: