-
-
Notifications
You must be signed in to change notification settings - Fork 938
Closed
Description
Describe the bug
'./package.json' is not defined by "exports" when upgrading from v7.0.3 to v8.0.0
To Reproduce
Steps to reproduce the behavior:
- upgrading from v7.0.3 to v8.0.0 and running npm build in a Svelte project
- See error
Expected behavior
A rollup bundle without an error as shown below.
Runtime
- OS: macOS
- Runtime: Node.js
- Runtime Version: 14.1.0
Additional context
This is the command line output after upgrading from v7.0.3 to v8.0.0 in a Svelte project
> Package subpath './package.json' is not defined by "exports" in /Users/sa/0/edm/node_modules/uuid/package.json
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in /Users/sa/0/edm/node_modules/uuid/package.json
at applyExports (internal/modules/cjs/loader.js:491:9)
at resolveExports (internal/modules/cjs/loader.js:507:23)
at Function.Module._findPath (internal/modules/cjs/loader.js:635:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1007:27)
at Function.requireRelative.resolve (/Users/sa/0/edm/node_modules/require-relative/index.js:30:17)
at tryResolve (/Users/sa/0/edm/node_modules/rollup-plugin-svelte/index.js:50:19)
at Object.resolveId (/Users/sa/0/edm/node_modules/rollup-plugin-svelte/index.js:177:21)
at /Users/sa/0/edm/node_modules/rollup/dist/shared/rollup.js:18217:25
I found some additional information in a SO post that might very well be related to the issue I'm seeing https://stackoverflow.com/questions/61621828/getting-strange-error-using-uuid-npm-module-what-am-i-doing-wrong/61730597#61730597
gmahima
Metadata
Metadata
Assignees
Labels
No labels