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 './package.json' is not defined by "exports" in node_modules/w3c-keyname/package.json #45

Closed
jet10000 opened this issue Jul 20, 2020 · 1 comment

Comments

@jet10000
Copy link

rollup v2.22.1
bundles src/main.js → public/build/bundle.js...
[!] (plugin svelte) Error: Package subpath './package.json' is not defined by "exports" in /Users/user1/github/pm/frontend/svelte/prosermarkdown-editor/node_modules/w3c-keyname/package.json
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in /Users/user1/github/pm/frontend/svelte/prosermarkdown-editor/node_modules/w3c-keyname/package.json
    at applyExports (internal/modules/cjs/loader.js:498:9)
    at resolveExports (internal/modules/cjs/loader.js:514:23)
    at Function.Module._findPath (internal/modules/cjs/loader.js:642:31)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1017:27)
    at Function.requireRelative.resolve (/Users/user1/github/pm/frontend/svelte/prosermarkdown-editor/node_modules/require-relative/index.js:30:17)
    at tryResolve (/Users/user1/github/pm/frontend/svelte/prosermarkdown-editor/node_modules/rollup-plugin-svelte/index.js:50:19)
    at Object.resolveId (/Users/user1/github/pm/frontend/svelte/prosermarkdown-editor/node_modules/rollup-plugin-svelte/index.js:177:21)
    at /Users/user1/github/pm/frontend/svelte/prosermarkdown-editor/node_modules/rollup/dist/shared/rollup.js:18264:25

node -v
v14.5.0
@jet10000 jet10000 changed the title './package.json' is not defined by "exports" ... w3c-keyname/package.json Error: Package subpath './package.json' is not defined by "exports" in node_modules/w3c-keyname/package.json Jul 20, 2020
@marijnh
Copy link
Member

marijnh commented Jul 20, 2020

As I wrote in this issue, that looks more like a bug in the Svelte (or the rollup Svelte plugin) code than in this package.

@marijnh marijnh closed this as completed Jul 20, 2020
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

2 participants