iamchathu / react-jsbarcode

JSBarcode component for modern React.js with types.
http://chathu.me/react-jsbarcode/
MIT License
17 stars 5 forks source link

Compilation warning/error #5

Open Loocos opened 2 years ago

Loocos commented 2 years ago

Hello,

Thanks for the fix from react-barcode, but now I'm getting this after each compilation :

WARNING in ./node_modules/react-jsbarcode/lib/index.esm.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from 'E:\Projets\ExterieurStock\reactjs-logistique\node_modules\react-jsbarcode\src\index.tsx' file: Error: ENOENT: no such file or directory, open 'E:\Projets\ExterieurStock\reactjs-logistique\node_modules\react-jsbarcode\src\index.tsx'

Any advice on how to fix it ?

Edit: I found this, maybe it can help you to fix it (https://github.com/facebook/create-react-app/discussions/11767)

iamchathu commented 2 years ago

@Loocos Can you provide me with a CodeSandBox with the issue?

Thanks

Loocos commented 2 years ago

@iamchathu https://codesandbox.io/s/sleepy-archimedes-j7xsdw?file=/src/App.js But it only appears when running yarn start CodeSandbox doesn't show that part

Loocos commented 2 years ago

@iamchathu No idea on how to solve that ?

iamchathu commented 2 years ago

@Loocos I will create a CRA project and test in this weekend

xino1010 commented 1 year ago

https://stackoverflow.com/a/70834076/3757628