calculate-size icon indicating copy to clipboard operation
calculate-size copied to clipboard

Source Map Errors in CRA 5.0

Open amcdnl opened this issue 2 years ago • 1 comments

In CRA 5.0, the build will fail when using this library stating:

WARNING in ./node_modules/calculate-size/lib/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/austin/dev/asdf/ui/node_modules/calculate-size/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/austin/dev/asdf/ui/node_modules/calculate-size/src/index.ts'

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

amcdnl avatar Apr 07 '22 14:04 amcdnl

I'm also seeing this warning, but currently my build is still completing using both npm start and npm run build.

calteran avatar Apr 21 '22 06:04 calteran