web-ifc-viewer icon indicating copy to clipboard operation
web-ifc-viewer copied to clipboard

`Failed to parse source map`

Open pierremonico opened this issue 3 years ago • 3 comments

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.

pierremonico avatar Feb 15 '22 17:02 pierremonico

Related: https://github.com/facebook/create-react-app/pull/11752

pierremonico avatar Feb 15 '22 17:02 pierremonico

Hum, you are using react, right? Did you check the react examples?

agviegas avatar Apr 13 '22 12:04 agviegas

Adding GENERATE_SOURCEMAP=false to an .env file seems to make this error go away

isma3lMB avatar Nov 12 '22 13:11 isma3lMB