mapbox-gl-directions
mapbox-gl-directions copied to clipboard
Error reporting after plug-in introduction
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)
Found it. This issue is related to https://github.com/mapbox/mapbox-gl-directions/issues/91#issuecomment-375281525
Fix can be found in the link.