web-ifc-viewer
web-ifc-viewer copied to clipboard
`Failed to parse source map`
On a plain install, I get around 50 warning stating:
WARNING in ./node_modules/web-ifc-viewer/dist/<somefile>.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/pierre/<path>/<to>/<app>/node_modules/web-ifc-viewer/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/pierre/<path>/<to>/<app>/node_modules/web-ifc-viewer/src/index.ts'
When checking in node_modules/web-ifc-viewer, the src/ directory is indeed not present.
Related: https://github.com/facebook/create-react-app/pull/11752
Hum, you are using react, right? Did you check the react examples?
Adding GENERATE_SOURCEMAP=false to an .env file seems to make this error go away