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
When I execute "npm run production", the following error always occurs.
The compiling process will be interrupted by scripts of "docs-compile".
Anyone knows how to fix it? Thanks a lot!
......
00:16:54 [content] No content directory found. Skipping type generation.
00:16:54 [build] output target: static
00:16:54 [build] Collecting build info...
00:16:54 [build] Completed in 39ms.
00:16:54 [build] Building static entrypoints...
[vite]: Rollup failed to resolve import "sharp" from "Z:/AdminLTE/node_modules/astro/dist/assets/services/sharp.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to build.rollupOptions.external
error [vite]: Rollup failed to resolve import "sharp" from "Z:/AdminLTE/node_modules/astro/dist/assets/services/sharp.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to build.rollupOptions.external
Error: [vite]: Rollup failed to resolve import "sharp" from "Z:/AdminLTE/node_modules/astro/dist/assets/services/sharp.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to build.rollupOptions.external
at viteWarn (file:///Z:/AdminLTE/node_modules/vite/dist/node/chunks/dep-df561101.js:48142:27)
at onRollupWarning (file:///Z:/AdminLTE/node_modules/vite/dist/node/chunks/dep-df561101.js:48174:9)
at onwarn (file:///Z:/AdminLTE/node_modules/vite/dist/node/chunks/dep-df561101.js:47902:13)
at file:///Z:/AdminLTE/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24276:13
at Object.logger [as onLog] (file:///Z:/AdminLTE/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:25950:9)
at ModuleLoader.handleInvalidResolvedId (file:///Z:/AdminLTE/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24862:26)
at ModuleLoader.resolveDynamicImport (file:///Z:/AdminLTE/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24920:58)
at async file:///Z:/AdminLTE/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24807:32
ERROR: "docs-compile" exited with 1.
ERROR: "compile" exited with 1.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I execute "npm run production", the following error always occurs.
The compiling process will be interrupted by scripts of "docs-compile".
Anyone knows how to fix it? Thanks a lot!
......
00:16:54 [content] No content directory found. Skipping type generation.
00:16:54 [build] output target: static
00:16:54 [build] Collecting build info...
00:16:54 [build] Completed in 39ms.
00:16:54 [build] Building static entrypoints...
[vite]: Rollup failed to resolve import "sharp" from "Z:/AdminLTE/node_modules/astro/dist/assets/services/sharp.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
error [vite]: Rollup failed to resolve import "sharp" from "Z:/AdminLTE/node_modules/astro/dist/assets/services/sharp.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
Error: [vite]: Rollup failed to resolve import "sharp" from "Z:/AdminLTE/node_modules/astro/dist/assets/services/sharp.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
at viteWarn (file:///Z:/AdminLTE/node_modules/vite/dist/node/chunks/dep-df561101.js:48142:27)
at onRollupWarning (file:///Z:/AdminLTE/node_modules/vite/dist/node/chunks/dep-df561101.js:48174:9)
at onwarn (file:///Z:/AdminLTE/node_modules/vite/dist/node/chunks/dep-df561101.js:47902:13)
at file:///Z:/AdminLTE/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24276:13
at Object.logger [as onLog] (file:///Z:/AdminLTE/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:25950:9)
at ModuleLoader.handleInvalidResolvedId (file:///Z:/AdminLTE/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24862:26)
at ModuleLoader.resolveDynamicImport (file:///Z:/AdminLTE/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24920:58)
at async file:///Z:/AdminLTE/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24807:32
ERROR: "docs-compile" exited with 1.
ERROR: "compile" exited with 1.
Beta Was this translation helpful? Give feedback.
All reactions