question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error trying to run via `npm start` on fresh project - `ERR_PACKAGE_PATH_NOT_EXPORTED`

See original GitHub issue

I’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:closed
  • Created a year ago
  • Reactions:4
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
bourdakos1commented, Aug 4, 2022

v0.6.1 has been released, thanks @yzhe819 🎉 feel free to reopen this issue if the new version doesn’t resolve the error

0reactions
doublexcommented, Aug 3, 2022

@lerela This works!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found