There are currently 2 workarounds required for npm run dev
to work.
Run these 2 commands before running npm run dev
:
npm install jsdoc
mkdir -p sites/dev/prebuild/jsdoc/react/components
- The first workaround addresses bug #369.
- The second workaround addresses bug #343 (already fixed, but the fix has not yet been deployed).
1 Like
The 2 workaround are no longer needed to run npm run dev
.
However, there is a new npm run dev
behavior where you will see an initial error…
Module not found: Error: Can’t resolve ‘@site/prebuild/jsdoc/components.button.mjs’ in ‘…/sites/dev/docs/reference/packages/react/components/button’
… which can simply be dismissed, allowing you to use the local dev site with no problems. (Except that the http://localhost:3000/reference/packages/react/components/button/
page won’t work.)