After Upgrading to CRA 5.0, Webpack warnings appeared: Failed to parse source map
agastiazoro opened this issue · 0 comments
agastiazoro commented
I had an existing project using "console-feed" and CRA 4 ( "react-scripts": "4.0.1"), when trying to update to "react-scripts": "5.0.1" these webpack warnings appeared:
WARNING in ./node_modules/console-feed/lib/Component/Message.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Component\Message.tsx' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Component\Message.tsx'
WARNING in ./node_modules/console-feed/lib/Component/devtools-parser/format-message.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Component\devtools-parser\format-message.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Component\devtools-parser\format-message.ts'
WARNING in ./node_modules/console-feed/lib/Component/devtools-parser/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Component\devtools-parser\index.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Component\devtools-parser\index.ts'
WARNING in ./node_modules/console-feed/lib/Component/devtools-parser/string-utils.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Component\devtools-parser\string-utils.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Component\devtools-parser\string-utils.ts'
WARNING in ./node_modules/console-feed/lib/Component/elements.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Component\elements.tsx' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Component\elements.tsx'
WARNING in ./node_modules/console-feed/lib/Component/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Component\index.tsx' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Component\index.tsx'
WARNING in ./node_modules/console-feed/lib/Component/message-parsers/Error.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Component\message-parsers\Error.tsx' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Component\message-parsers\Error.tsx'
WARNING in ./node_modules/console-feed/lib/Component/message-parsers/Formatted.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Component\message-parsers\Formatted.tsx' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Component\message-parsers\Formatted.tsx'
WARNING in ./node_modules/console-feed/lib/Component/message-parsers/Object.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Component\message-parsers\Object.tsx' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Component\message-parsers\Object.tsx'
WARNING in ./node_modules/console-feed/lib/Component/react-inspector/elements.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Component\react-inspector\elements.tsx' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Component\react-inspector\elements.tsx'
WARNING in ./node_modules/console-feed/lib/Component/react-inspector/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Component\react-inspector\index.tsx' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Component\react-inspector\index.tsx'
WARNING in ./node_modules/console-feed/lib/Component/theme/default.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Component\theme\default.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Component\theme\default.ts'
WARNING in ./node_modules/console-feed/lib/Component/theme/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Component\theme\index.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Component\theme\index.ts'
WARNING in ./node_modules/console-feed/lib/Hook/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Hook\index.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Hook\index.ts'
WARNING in ./node_modules/console-feed/lib/Hook/parse/GUID.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Hook\parse\GUID.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Hook\parse\GUID.ts'
WARNING in ./node_modules/console-feed/lib/Hook/parse/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Hook\parse\index.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Hook\parse\index.ts'
WARNING in ./node_modules/console-feed/lib/Hook/parse/methods/assert.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Hook\parse\methods\assert.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Hook\parse\methods\assert.ts'
WARNING in ./node_modules/console-feed/lib/Hook/parse/methods/count.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Hook\parse\methods\count.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Hook\parse\methods\count.ts'
WARNING in ./node_modules/console-feed/lib/Hook/parse/methods/timing.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Hook\parse\methods\timing.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Hook\parse\methods\timing.ts'
WARNING in ./node_modules/console-feed/lib/Hook/store/actions.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Hook\store\actions.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Hook\store\actions.ts'
WARNING in ./node_modules/console-feed/lib/Hook/store/dispatch.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Hook\store\dispatch.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Hook\store\dispatch.ts'
WARNING in ./node_modules/console-feed/lib/Hook/store/reducer.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Hook\store\reducer.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Hook\store\reducer.ts'
WARNING in ./node_modules/console-feed/lib/Hook/store/state.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Hook\store\state.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Hook\store\state.ts'
WARNING in ./node_modules/console-feed/lib/Transform/Function.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Transform\Function.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Transform\Function.ts'
WARNING in ./node_modules/console-feed/lib/Transform/HTML.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Transform\HTML.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Transform\HTML.ts'
WARNING in ./node_modules/console-feed/lib/Transform/Map.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Transform\Map.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Transform\Map.ts'
WARNING in ./node_modules/console-feed/lib/Transform/arithmetic.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Transform\arithmetic.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Transform\arithmetic.ts'
WARNING in ./node_modules/console-feed/lib/Transform/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Transform\index.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Transform\index.ts'
WARNING in ./node_modules/console-feed/lib/Transform/replicator/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Transform\replicator\index.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Transform\replicator\index.ts'
WARNING in ./node_modules/console-feed/lib/Unhook/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\Unhook\index.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\Unhook\index.ts'
WARNING in ./node_modules/console-feed/lib/definitions/Methods.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\definitions\Methods.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\definitions\Methods.ts'
WARNING in ./node_modules/console-feed/lib/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxxxxx\node_modules\console-feed\src\index.ts' file: Error: ENOENT: no such file or directory, open 'xxxxxx\node_modules\console-feed\src\index.ts
Maybe this comment can help to resolve it
facebook/create-react-app#11767 (comment)
Thanks!!