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

Error: Package subpath './compiler.js' is not defined by "exports" #32

Open
twkevinzhang opened this issue Dec 14, 2021 · 0 comments · May be fixed by #31
Open

Error: Package subpath './compiler.js' is not defined by "exports" #32

twkevinzhang opened this issue Dec 14, 2021 · 0 comments · May be fixed by #31

Comments

@twkevinzhang
Copy link

when i type

npm  i
npm run dev

i get

[!] Error: Package subpath './compiler.js' is not defined by "exports" in C:\Project\pdf-editor\node_modules\svelte\package.json
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './compiler.js' is not defined by "exports" in C:\Project\pdf-editor\node_modules\svelte\package.json
    at throwExportsNotFound (internal/modules/esm/resolve.js:299:9)
    at packageExportsResolve (internal/modules/esm/resolve.js:522:3)
    at resolveExports (internal/modules/cjs/loader.js:449:36)
    at Function.Module._findPath (internal/modules/cjs/loader.js:489:31)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:875:27)
    at Function.Module._load (internal/modules/cjs/loader.js:745:27)
    at Module.require (internal/modules/cjs/loader.js:961:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object.<anonymous> (C:\Project\pdf-editor\node_modules\rollup-plugin-svelte\index.js:11:4)
    at Module._compile (internal/modules/cjs/loader.js:1072:14)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `rollup -c -w`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\kevin\AppData\Roaming\npm-cache\_logs\2021-12-14T03_00_51_014Z-debug.log
@twkevinzhang twkevinzhang linked a pull request Dec 14, 2021 that will close this issue
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.

1 participant