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

ERR_PACKAGE_PATH_NOT_EXPORTED error #3

Open
prathamandwal opened this issue Dec 20, 2023 · 0 comments
Open

ERR_PACKAGE_PATH_NOT_EXPORTED error #3

prathamandwal opened this issue Dec 20, 2023 · 0 comments

Comments

@prathamandwal
Copy link

Hello,

I get this error -
Not sure, which file to update to fix this?

Thanks,
Pratha

ERROR in ./src/assets/scss/libs.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/postcss/package.json
at exportsNotFound (node:internal/modules/esm/resolve:294:10)
at packageExportsResolve (node:internal/modules/esm/resolve:641:9)
at resolveExports (node:internal/modules/cjs/loader:591:36)
at Module._findPath (node:internal/modules/cjs/loader:668:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object. (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/css-loader/dist/index.js:12:39)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object. (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/css-loader/dist/cjs.js:3:16)
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/NormalModule.js:316:20
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/loader-runner/lib/LoaderRunner.js:172:11
at loadLoader (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/loader-runner/lib/loadLoader.js:32:11)
at iteratePitchingLoaders (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/loader-runner/lib/LoaderRunner.js:169:2)
at runLoaders (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/loader-runner/lib/LoaderRunner.js:365:2)
at NormalModule.doBuild (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/NormalModule.js:295:3)
at NormalModule.build (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/NormalModule.js:446:15)
at Compilation.buildModule (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/Compilation.js:739:10)
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/Compilation.js:1111:12
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/NormalModuleFactory.js:409:6
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/NormalModuleFactory.js:155:13
at AsyncSeriesWaterfallHook.eval [as callAsync] (eval at create (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesWaterfallHook.lazyCompileHook (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/tapable/lib/Hook.js:154:20)
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/NormalModuleFactory.js:138:29
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/NormalModuleFactory.js:346:9
@ multi ./src/assets/scss/libs.scss libs[0]

ERROR in ./src/assets/scss/theme.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/postcss/package.json
at exportsNotFound (node:internal/modules/esm/resolve:294:10)
at packageExportsResolve (node:internal/modules/esm/resolve:641:9)
at resolveExports (node:internal/modules/cjs/loader:591:36)
at Module._findPath (node:internal/modules/cjs/loader:668:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object. (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/css-loader/dist/index.js:12:39)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object. (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/css-loader/dist/cjs.js:3:16)
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/NormalModule.js:316:20
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/loader-runner/lib/LoaderRunner.js:172:11
at loadLoader (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/loader-runner/lib/loadLoader.js:32:11)
at iteratePitchingLoaders (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/loader-runner/lib/LoaderRunner.js:169:2)
at runLoaders (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/loader-runner/lib/LoaderRunner.js:365:2)
at NormalModule.doBuild (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/NormalModule.js:295:3)
at NormalModule.build (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/NormalModule.js:446:15)
at Compilation.buildModule (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/Compilation.js:739:10)
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/Compilation.js:1111:12
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/NormalModuleFactory.js:409:6
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/NormalModuleFactory.js:155:13
at AsyncSeriesWaterfallHook.eval [as callAsync] (eval at create (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesWaterfallHook.lazyCompileHook (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/tapable/lib/Hook.js:154:20)
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/NormalModuleFactory.js:138:29
at /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/webpack/lib/NormalModuleFactory.js:346:9
@ multi ./src/assets/js/theme.js ./src/assets/scss/theme.scss theme[1]
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--4-1!node_modules/postcss-loader/dist/cjs.js!node_modules/sass-loader/dist/cjs.js!src/assets/scss/libs.scss:
Entrypoint mini-css-extract-plugin = *
[./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/assets/scss/libs.scss] ./node_modules/css-loader/dist/cjs.js??ref--4-1!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/assets/scss/libs.scss 1.43 KiB {mini-css-extract-plugin} [not cacheable] [built] [failed] [1 error]

ERROR in ./src/assets/scss/libs.scss (./node_modules/css-loader/dist/cjs.js??ref--4-1!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/assets/scss/libs.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/postcss/package.json
    at exportsNotFound (node:internal/modules/esm/resolve:294:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:641:9)
    at resolveExports (node:internal/modules/cjs/loader:591:36)
    at Module._findPath (node:internal/modules/cjs/loader:668:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/css-loader/dist/index.js:12:39)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/css-loader/dist/cjs.js:3:16)

Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--4-1!node_modules/postcss-loader/dist/cjs.js!node_modules/sass-loader/dist/cjs.js!src/assets/scss/theme.scss:
Entrypoint mini-css-extract-plugin = *
[./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/assets/scss/theme.scss] ./node_modules/css-loader/dist/cjs.js??ref--4-1!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/assets/scss/theme.scss 1.43 KiB {mini-css-extract-plugin} [not cacheable] [built] [failed] [1 error]

ERROR in ./src/assets/scss/theme.scss (./node_modules/css-loader/dist/cjs.js??ref--4-1!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/assets/scss/theme.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in /Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/postcss/package.json
    at exportsNotFound (node:internal/modules/esm/resolve:294:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:641:9)
    at resolveExports (node:internal/modules/cjs/loader:591:36)
    at Module._findPath (node:internal/modules/cjs/loader:668:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/css-loader/dist/index.js:12:39)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/Users/prathamandwal/amira-website/oldskool-html-bootstrap/node_modules/css-loader/dist/cjs.js:3:16)
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

1 participant