Error trying to run via `npm start` on fresh project - `ERR_PACKAGE_PATH_NOT_EXPORTED`
See original GitHub issueI’m on node 16.16.0
and am encountering an error trying to run Docasaurus after a fresh install.
- I created the app via
npx create-docusaurus-openapi test-docasaurus
- ran
npm start
- see error
[ERROR] Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/sidebars/generator' is not defined by "exports" in /Users/sean/Repos/test-docasaurus/node_modules/@docusaurus/plugin-content-docs/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.<anonymous> (/Users/sean/Repos/test-docasaurus/node_modules/docusaurus-plugin-openapi/lib/sidebars/index.js:14:21)
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:10 (4 by maintainers)
Top Results From Across the Web
No "exports" main resolved in /app/node_modules/@babel ...
Using npm update fixed the same error for me. ... The issue is that a new system for exports has been created, as...
Read more >npm start failed (code ...
hello, I 'am using Node.js v17.0.1 and upgrading my package helped me solved this issue without downgrading the node version. "yarn ...
Read more >Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No 'exports'
Run the npm update command to solve the "Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No 'exports'" and then run npm audit fix --force if necessary.
Read more >ERR_PACKAGE_PATH_NOT_E...
Npm #NpmErrorERR_PACKAGE_PATH_NOT_EXPORTED NPM Error FixThe error Error ... ERR_PACKAGE_PATH_NOT_EXPORTED NPM Error Fix.
Read more >No "exports" main defined - Laracasts
Hello , After cloning my project I got the error bellow when I npm run watch (I ... Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
v0.6.1 has been released, thanks @yzhe819 🎉 feel free to reopen this issue if the new version doesn’t resolve the error
@lerela This works!