GodziLaravel
2 weeks ago

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined

Posted 2 weeks ago by GodziLaravel

Hello ,

After cloning my project I got the error bellow when I npm run watch

(I deleted the node_modules)


ERROR in ./resources/js/app.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in C:\Users\standarduser\code\irp-project\node_modules\@babel\helper-compilation-targets\package.json
    at throwExportsNotFound (internal/modules/esm/resolve.js:285:9)
    at packageExportsResolve (internal/modules/esm/resolve.js:491:3)
    at resolveExports (internal/modules/cjs/loader.js:444:36)
    at Function.Module._findPath (internal/modules/cjs/loader.js:484:31)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:818:27)
    at Function.Module._load (internal/modules/cjs/loader.js:687:27)
    at Module.require (internal/modules/cjs/loader.js:903:19)
    at require (C:\Users\standarduser\code\irp-project\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
    at Object.<anonymous> (C:\Users\standarduser\code\irp-project\node_modules\@babel\preset-env\lib\debug.js:8:33)
    at Module._compile (C:\Users\standarduser\code\irp-project\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:903:19)
    at require (C:\Users\standarduser\code\irp-project\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
    at Object.<anonymous> (C:\Users\standarduser\code\irp-project\node_modules\@babel\preset-env\lib\index.js:11:14)
    at Module._compile (C:\Users\standarduser\code\irp-project\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:903:19)
    at require (C:\Users\standarduser\code\irp-project\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
    at requireModule (C:\Users\standarduser\code\irp-project\node_modules\@babel\core\lib\config\files\plugins.js:165:12)
    at loadPreset (C:\Users\standarduser\code\irp-project\node_modules\@babel\core\lib\config\files\plugins.js:83:17)
    at createDescriptor (C:\Users\standarduser\code\irp-project\node_modules\@babel\core\lib\config\config-descriptors.js:154:9)
    at C:\Users\standarduser\code\irp-project\node_modules\@babel\core\lib\config\config-descriptors.js:109:50
    at Array.map (<anonymous>)
    at createDescriptors (C:\Users\standarduser\code\irp-project\node_modules\@babel\core\lib\config\config-descriptors.js:109:29)
    at createPresetDescriptors (C:\Users\standarduser\code\irp-project\node_modules\@babel\core\lib\config\config-descriptors.js:101:10)
    at C:\Users\standarduser\code\irp-project\node_modules\@babel\core\lib\config\config-descriptors.js:58:104
    at cachedFunction (C:\Users\standarduser\code\irp-project\node_modules\@babel\core\lib\config\caching.js:62:27)
    at cachedFunction.next (<anonymous>)
    at evaluateSync (C:\Users\standarduser\code\irp-project\node_modules\gensync\index.js:244:28)
    at sync (C:\Users\standarduser\code\irp-project\node_modules\gensync\index.js:84:14)
    at presets (C:\Users\standarduser\code\irp-project\node_modules\@babel\core\lib\config\config-descriptors.js:29:84)
    at mergeChainOpts (C:\Users\standarduser\code\irp-project\node_modules\@babel\core\lib\config\config-chain.js:320:26)
 @ multi ./resources/js/app.js ./resources/sass/app.scss /js/app[0]

Please sign in or create an account to participate in this conversation.