Closed devcer closed 5 years ago
We only support building browser apps, and while building browser apps node native modules like fs
are not available.
You can read more about why we disabled these imports in #9827.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
node : 8.9.4 npm: 6.5.0 ng: 6.0.0 mapbox-gl-js version: 0.52.0 mapbox-gl-draw version: 1.1.1 ubuntu 18
Repro steps
The log given by the failure
ERROR in ./node_modules/jsonlint-lines/lib/jsonlint.js Module not found: Error: Can't resolve 'fs' in '/home/Documents/projects/Project_name/node_modules/jsonlint-lines/lib' ERROR in ./node_modules/jsonlint-lines/lib/jsonlint.js Module not found: Error: Can't resolve 'path' in '/home/gaian/Documents/projects/Project_name/node_modules/jsonlint-lines/lib