react-script-hook icon indicating copy to clipboard operation
react-script-hook copied to clipboard

Source map warning when used within create-react-app v5.0.0 (webpack 5)

Open schwolf opened this issue 2 years ago • 9 comments

Steps to reproduce:

npx create-react-app myApp

cd myApp

npm i react-script-hook

Add import to to src/App.js: import useScript from 'react-script-hook' or import useScript from 'react-script-hook/lib/use-script'

npm run build

Result: ... Compiled with warnings.

Failed to parse source map from '/home/schwolf/dev/myApp/node_modules/react-script-hook/src/use-script.tsx' file: Error: ENOENT: no such file or directory, open '/home/schwolf/dev/myApp/node_modules/react-script-hook/src/use-script.tsx' ...

This problem did not occur in in create-react-app version 4 (which was using webpack v4 under the hood)

schwolf avatar Dec 17 '21 12:12 schwolf

+1

SolidZORO avatar Mar 23 '22 07:03 SolidZORO

+1

One1L avatar Jun 21 '22 21:06 One1L

I'm also running into this warning

derekvogt3 avatar Sep 09 '22 14:09 derekvogt3

Same here

oliviercperrier avatar Nov 10 '22 14:11 oliviercperrier

We're running into this as well.

A fix would be amazing!

SilasReinagel avatar Dec 20 '22 20:12 SilasReinagel

same error

jibalz avatar Jan 30 '23 09:01 jibalz

same err

oneido avatar Feb 17 '23 11:02 oneido

+1

oulfr avatar Apr 07 '23 12:04 oulfr

same + 1

burgosa avatar Nov 08 '23 22:11 burgosa

+1

george-bark avatar Apr 03 '24 14:04 george-bark

+1

maxa315 avatar May 24 '24 13:05 maxa315