mapbox / mapbox/mapbox-gl-rtl-text
import with webpack is not working
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 65
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
Hello together,
I tried to import it with webpack via
`import mapboxglRTL from '@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text';`
Webpack give me then following error:
```
ERROR in ./node_modules/@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.js
Module not found: Error: Can't resolve 'fs' in 'project/node_modules/@mapbox/mapbox-gl-rtl-text'
```
using Version 0.2.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the package entry referenced as mapbox-gl-rtl-text.js and reproduce the Version 0.2.1 import through webpack. Trace why resolving the package brings in Node's fs module; done means the documented import works in webpack without the reported module-not-found error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, webpack
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100