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

'npm run build' encounter error #49

Open
briteming opened this issue Oct 24, 2024 · 0 comments
Open

'npm run build' encounter error #49

briteming opened this issue Oct 24, 2024 · 0 comments

Comments

@briteming
Copy link

hi.

npx degit Charca/sapper-blog-template sapper-blog-template
cd sapper-blog-template
npm install
npm audit fix --force
npm run build

it shows:
$ npm run build

[email protected] build
sapper build

Building...
Package subpath './compiler.js' is not defined by "exports" in C:\Users\12799\sapper-blog-template\node_modules\svelte\package.json
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './compiler.js' is not defined by "exports" in C:\Users\12799\sapper-blog-template\node_modules\svelte\package.json
at exportsNotFound (node:internal/modules/esm/resolve:303:10)
at packageExportsResolve (node:internal/modules/esm/resolve:650:9)
at resolveExports (node:internal/modules/cjs/loader:591:36)
at Module._findPath (node:internal/modules/cjs/loader:668:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object. (C:\Users\12799\sapper-blog-template\node_modules\rollup-plugin-svelte\index.js:11:4)
at Module._compile (node:internal/modules/cjs/loader:1376:14)

how to fix it?
thanks a lot

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

1 participant