react-docgen
react-docgen copied to clipboard
error when using react-docgen 5.3.1 - Cannot find module './componentDocblockHandler'
[storeui] error: Error: Cannot find module './componentDocblockHandler'
Require stack:
- app/node_modules/react-docgen/dist/handlers/index.js
- app/node_modules/react-docgen/dist/main.js
- app/packages/apps/core-commerce-reference-store/dist/cjs/server.js
- app/node_modules/@oracle-cx-commerce/express-app/utils/load-app.js
- app/node_modules/@oracle-cx-commerce/express-app/utils/index.js
- app/node_modules/@oracle-cx-commerce/cli/actions/bundle.js
- app/node_modules/@oracle-cx-commerce/cli/actions/index.js
- app/node_modules/@oracle-cx-commerce/cli/cli.js
how to reproduce
npx @oracle-cx-commerce/cli-init create-workspace occ-play
cd occ-play
yarn install
yarn build
yarn start
Is this happening during bundling?
The problem here I guess is that we do not specify file extensions in react-docgen, because Node.js does not need them. But even webpack or any other bundler should be able to resolve './componentDocblockHandler' to './componentDocblockHandler.js'