While I'm building the project with "npm run build", I got lots of "Cannot find module" errors. For example:
.\src\actions\isochronesActions.js
Cannot find module: 'utils/nominatim'. Make sure this package is installed.
I have to change the import from 'utils/nominatim' into import from '../utils/nominatim' in isochronesActions.js to pass the compiler. Looks like there is a root path setting for importing that I should config. But I'm not very familiar with the React. (the project has a jsconfig.json, but it doesn't help)
Any idea what I was missing?
Description
While I'm building the project with "npm run build", I got lots of "Cannot find module" errors. For example:
I have to change the
import from 'utils/nominatim'
intoimport from '../utils/nominatim'
in isochronesActions.js to pass the compiler. Looks like there is a root path setting for importing that I should config. But I'm not very familiar with the React. (the project has a jsconfig.json, but it doesn't help) Any idea what I was missing?Screenshots
No response