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
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in C:\Users\Admin\Desktop\GitDemo\URL-Shortener\node_modules\firebase\package.json
#497
Open
deepshah201 opened this issue
Apr 25, 2023
· 0 comments
After installing the Node Package Manager try to start application but the below error message was displayed. how solve it?
C:\Users\Admin\Desktop\GitDemo\URL-Shortener>npm -v 8.5.5
C:\Users\Admin\Desktop\GitDemo\URL-Shortener>node -v v16.15.0
Got the below error
C:\Users\Admin\Desktop\GitDemo\URL-Shortener>npm start
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in C:\Users\Admin\Desktop\GitDemo\URL-Shortener\node_modules\firebase\package.json
at new NodeError (node:internal/errors:372:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:472:9)
at packageExportsResolve (node:internal/modules/esm/resolve:753:3)
at resolveExports (node:internal/modules/cjs/loader:482:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (C:\Users\Admin\Desktop\GitDemo\URL-Shortener\shortner.js:4:16) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
The text was updated successfully, but these errors were encountered:
After installing the Node Package Manager try to start application but the below error message was displayed. how solve it?
C:\Users\Admin\Desktop\GitDemo\URL-Shortener>npm -v
8.5.5
C:\Users\Admin\Desktop\GitDemo\URL-Shortener>node -v
v16.15.0
Got the below error
C:\Users\Admin\Desktop\GitDemo\URL-Shortener>npm start
node:internal/modules/cjs/loader:488
throw e;
^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in C:\Users\Admin\Desktop\GitDemo\URL-Shortener\node_modules\firebase\package.json
at new NodeError (node:internal/errors:372:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:472:9)
at packageExportsResolve (node:internal/modules/esm/resolve:753:3)
at resolveExports (node:internal/modules/cjs/loader:482:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (C:\Users\Admin\Desktop\GitDemo\URL-Shortener\shortner.js:4:16) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
The text was updated successfully, but these errors were encountered: