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 [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './compiled/webpack-sources/index' is not defined by "exports" #7944

Open
nexusprime-here opened this issue Sep 22, 2024 · 0 comments
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.

Comments

@nexusprime-here
Copy link

System Info

System:
OS: Windows 11 10.0.22631
CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
Memory: 955.79 MB / 7.83 GB
Binaries:
Node: 22.8.0 - C:\Program Files\nodejs\node.EXE
npm: 10.8.3 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Chromium (128.0.2739.79)
Internet Explorer: 11.0.22621.3527
npmPackages:
@rspack/core: ^1.0.5 => 1.0.5

Details

node:internal/modules/cjs/loader:646
throw e;
^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './compiled/webpack-sources/index' is not defined by "exports" in C:\Users\nicol\www\discord\core\node_modules@rspack\core\package.json
at exportsNotFound (node:internal/modules/esm/resolve:296:10)
at packageExportsResolve (node:internal/modules/esm/resolve:643:9)
at resolveExports (node:internal/modules/cjs/loader:639:36)
at Module._findPath (node:internal/modules/cjs/loader:747:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1234:27)
at Module._load (node:internal/modules/cjs/loader:1074:27)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
at Module.require (node:internal/modules/cjs/loader:1339:12)
at require (node:internal/modules/helpers:135:16) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Reproduce link

No response

Reproduce Steps

  • Create your own plugin and try to use RawSource.

On importation should be thrown the error.

@nexusprime-here nexusprime-here added bug Something isn't working pending triage The issue/PR is currently untouched. labels Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.
Projects
None yet
Development

No branches or pull requests

1 participant