mapbox / mapbox/shp-write

Error: Dynamic require of "dbf" is not supported

Open
#132 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
321
Forks
194
PR merge metrics
No merged PRs in 30d

Description

Hi everubody, i have an issue with my vue app. Console show me this error, probably is a compatibility problem between node.js and the broswer environment but i can't fix it. I use vite in my project as bundler.

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported error in a Vue app using Vite and inspect how the browser bundle handles the dynamic require of "dbf". Done means the package can be bundled and used in that environment without the reported console error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vite
Domain
build-system, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.