Hi there. Following your guide (here: Deploy a Create React App Static Site | Render Docs) for the CRA site I am trying to deploy, but when the build runs (on Render only), we get the following error:
Nov 3 10:35:29 AM $ react-scripts build Nov 3 10:35:31 AM Creating an optimized production build... Nov 3 10:35:39 AM Failed to compile. Nov 3 10:35:39 AM Nov 3 10:35:39 AM Module not found: Error: Can't resolve '../icons/IdentIcon' in '/opt/render/project/src/src/components/modals' Nov 3 10:35:39 AM
Locally, I can run a production build with no failures (running the same CRA out-of-the-box yarn build command).
Where it is getting hung up appears to be in /opt/render/project/src/src/components/modals/AccountModal.tsx, which includes ‘…/icons/IdentIcon’ using a relative path.
Project folders are:
Is this a known issue? Any advice?