You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting this eslint error with the latest version of this package:
Oops! Something went wrong! :(
ESLint: 7.32.0
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/style.css' is not defined by "exports" in /{my workspace dir}/node_modules/allotment/package.json
Occurred while linting /{my workspace dir}/src/pages/{my js file}.js:36
at new NodeError (node:internal/errors:399:5)
at exportsNotFound (node:internal/modules/esm/resolve:361:10)
at packageExportsResolve (node:internal/modules/esm/resolve:697:9)
at resolveExports (node:internal/modules/cjs/loader:565:36)
at Module._findPath (node:internal/modules/cjs/loader:634:31)
at findModulePath (/{my workspace dir}/node_modules/eslint-import-resolver-alias/index.js:99:27)
at exports.resolve (/{my workspace dir}/node_modules/eslint-import-resolver-alias/index.js:75:10)
at v2 (/{my workspace dir}/node_modules/eslint-module-utils/resolve.js:116:23)
at withResolver (/{my workspace dir}/node_modules/eslint-module-utils/resolve.js:121:14)
at fullResolve (/{my workspace dir}/node_modules/eslint-module-utils/resolve.js:138:22)
Any idea how to fix this? Thanks
The text was updated successfully, but these errors were encountered:
Hey! I have the same problem. To provide more context: I've only started to see this error after i started using eslint-import-resolver-alias package with configuration to enable absolute paths.
With node version 16 I got "Deprecation warning" that folder mapping ./dist/ will be deprecated and pattern ./dist/* should be used in package.json file of allotment package.
After i switch to node 18 I got the same error as @LinKassem. When manually changing the pattern in node_modules/allotment/package.json from ./dist/ to ./dist/* im no longer getting this error.
Can i open a PR resolving this issue or do you see any complications @johnwalley ?
Hi,
I am getting this eslint error with the latest version of this package:
Any idea how to fix this? Thanks
The text was updated successfully, but these errors were encountered: