mapbox / mapbox/mapbox-gl-directions

Cannot Find Modules

Open
#88 0 comments 0 reactions 0 assignees View on GitHub
auto-triaged bug
Dominant language
JavaScript
Stars
255
Forks
130
PR merge metrics
No merged PRs in 30d

Description

Hey I am trying to import this into my browserfy/babel script but getting errors when compiling.

```
Error: Cannot find module './_getPrototype' from '/Users/kenyonkowal/www/Chalk-Festival-2016/site/node_modules/mapbox-gl-directions/dist'
Error: Cannot find module './isObjectLike' from '/Users/kenyonkowal/www/Chalk-Festival-2016/site/node_modules/mapbox-gl-directions/dist'
Error: Cannot find module './_isHostObject' from '/Users/kenyonkowal/www/Chalk-Festival-2016/site/node_modules/mapbox-gl-directions/dist'
Error: Cannot find module './src/directions' from '/Users/kenyonkowal/www/Chalk-Festival-2016/site/node_modules/mapbox-gl-directions/dist'
Error: Cannot find module '../constants/action_types' from '/Users/kenyonkowal/www/Chalk-Festival-2016/site/node_modules/mapbox-gl-directions/dist'
[...]
```

Any idea for a fix?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the browserify/Babel import and inspect the package's dist directory alongside the referenced src/directions and constants/action_types paths. Check why the listed modules are unavailable from the published package; the issue is done when the plugin compiles without the missing-module errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.