gis-ops / valhalla-app

This is the demo web app running on https://valhalla.openstreetmap.de
https://valhalla.openstreetmap.de
MIT License
154 stars 87 forks source link

"Cannot find module" Error #195

Closed ruanqizhen closed 9 months ago

ruanqizhen commented 9 months ago

Description

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?

Screenshots

No response