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

Is there a config somewhere to have the react components referenced in the mdx files to properly resolve? AM I missing something obvious?
Was this page helpful?