mapbox / mapbox/mapbox-gl-directions

Error reporting after plug-in introduction

Open
#211 1 comment 1 reaction 0 assignees View on GitHub
auto-triaged bug
Dominant language
JavaScript
Stars
255
Forks
130
PR merge metrics
No merged PRs in 30d

Description

TypeError: fs.readFileSync is not a function
at Module.eval (webpack-internal:///./node_modules/@mapbox/mapbox-gl-directions/src/controls/inputs.js:16)
at eval (webpack-internal:///./node_modules/@mapbox/mapbox-gl-directions/src/controls/inputs.js:162)
at Module../node_modules/@mapbox/mapbox-gl-directions/src/controls/inputs.js (0.js:47)
at __webpack_require__ (app.js:767)
at fn (app.js:130)
at eval (webpack-internal:///./node_modules/@mapbox/mapbox-gl-directions/src/directions.js:11)
at Module../node_modules/@mapbox/mapbox-gl-directions/src/directions.js (0.js:71)
at __webpack_require__ (app.js:767)
at fn (app.js:130)
at Module.eval (webpack-internal:///./node_modules/@mapbox/mapbox-gl-directions/src/index.js:2)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported TypeError from the webpack stack trace, then inspect node_modules/@mapbox/mapbox-gl-directions/src/controls/inputs.js and its callers in src/directions.js and src/index.js. Done means the plug-in loads without the fs.readFileSync error in the reported webpack context; the issue does not name a test or a more specific expected change.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
frontend, web-dev
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.