Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'node_modules/@mapbox/mapbox-sdk/services/geocoding' #497

Open
falk-stefan opened this issue Dec 8, 2024 · 0 comments

Comments

@falk-stefan
Copy link

Locally, everything is working fine. I have an express server which uses the mapbox geocoding API for text-based location search.

I have the following installed in my package.json

  "dependencies": {
    "@mapbox/mapbox-sdk": "^0.16.1",
  },
  "devDependencies": {
    "@types/mapbox__mapbox-sdk": "^0.16.0",
  }

and this entry in my tsconfig.json:

    "types": [
      "jest",
      "@types/mapbox__mapbox-sdk"
    ]

However, as I run the server in production, I am getting this error:

Cannot find module '/node_modules/@mapbox/mapbox-sdk/services/geocoding' imported from /src/api/search/map-search.controller.js

mapbox is the only package which does not appear to work here. Note, that I am using TypeScript throughout my application here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant