stefanpenner / get-caller-file

ISC License
37 stars 11 forks source link

Error parsing sourcemaps #24

Open m4ttsch opened 1 year ago

m4ttsch commented 1 year ago

Seeing this error when I try to build an application with webpack that has get-caller-file as an npm dependency:

Module Warning (from ../../node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/home/me/app/node_modules/get-caller-file/index.ts' file: 
Error: ENOENT: no such file or directory, open '/home/me/app/node_modules/get-caller-file/index.ts'

Your sourcemap file is referencing index.ts as a source, but that file isn't present in the downloaded package.