docusaurus site with react component fails to build

I have a small docusaurus website, that I would like to test on pages. The site builds and run fines with npm start and npm build, but fails building on CF pages with the following errors :
19:31:16.192 Module not found: Error: Can't resolve '@site/src/Components/ListAllCities.js' in '/opt/buildhome/repo/docs'
19:31:16.192 Module not found: Error: Can't resolve '@site/src/Components/NextCity' in '/opt/buildhome/repo/docs'
19:31:16.192 Module not found: Error: Can't resolve '@site/src/Components/Home' in '/opt/buildhome/repo/docs'
19:31:16.192 Module not found: Error: Can't resolve '@site/src/Components/NextCity' in '/opt/buildhome/repo/docs'
19:31:16.192 [ERROR] Client bundle compiled with errors therefore further build is impossible.
19:31:16.295 Failed: Error while executing user command. Exited with error code: 1
19:31:16.192 Module not found: Error: Can't resolve '@site/src/Components/ListAllCities.js' in '/opt/buildhome/repo/docs'
19:31:16.192 Module not found: Error: Can't resolve '@site/src/Components/NextCity' in '/opt/buildhome/repo/docs'
19:31:16.192 Module not found: Error: Can't resolve '@site/src/Components/Home' in '/opt/buildhome/repo/docs'
19:31:16.192 Module not found: Error: Can't resolve '@site/src/Components/NextCity' in '/opt/buildhome/repo/docs'
19:31:16.192 [ERROR] Client bundle compiled with errors therefore further build is impossible.
19:31:16.295 Failed: Error while executing user command. Exited with error code: 1
Is there a config somewhere to have the react components referenced in the mdx files to properly resolve? AM I missing something obvious?
1 Reply
RandomNick
RandomNickOP17mo ago
answer to myself check casing of all parts of the component path, not just the component name. webpack warns about this but not in a very readable manner
Want results from more Discord servers?
Add your server