I'm using this npm library in my react ts project: https://www.npmjs.com/package/mapbox-gl-draw-circle.
Because it doesn't support ts I needed to create a declaration file (which I did). But because it uses 'require('./lib/modes/CircleMode') etc. in it self I get a "Error in ./node_moudles/jsonlint-lines/lib/jsonlint.js 942:17-43 Module not found: Error: Can't resolve 'fs' in '....../node_modules/jsonlint-lines/lib'" I have no access to the webpack config file because I created the app using 'create react app' and I wish to leave it untouched and not to extract and start managing it. I also added to the package.json file "browser": { "fs": false, "path": false", "os": false" } but this isn't helpfull
Thanks in advance.