yudielcurbelo / react-qr-scanner

A library to scan QR Codes in react.
https://yudielcurbelo.github.io/react-qr-scanner/
MIT License
217 stars 29 forks source link

ENOENT errors for package dependencies #64

Closed timcastelijn closed 1 week ago

timcastelijn commented 2 months ago

Hi @yudielcurbelo,

i've installed the package with npm in my "create-react-app" app, although it seems working fine (thanks for that!), I get these ENOENT warnings. Do you know a way to solve this?

Best regards, Tim

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\assets\CameraOff.tsx' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\assets\CameraOff.tsx'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\assets\CameraOn.tsx' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\assets\CameraOn.tsx'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\assets\TorchOff.tsx' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\assets\TorchOff.tsx'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\assets\TorchOn.tsx' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\assets\TorchOn.tsx'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\assets\ZoomIn.tsx' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\assets\ZoomIn.tsx'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\assets\ZoomOut.tsx' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\assets\ZoomOut.tsx'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\assets\base64Beep.ts' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\assets\base64Beep.ts'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\components\Finder.tsx' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\components\Finder.tsx'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\components\OnOff.tsx' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\components\OnOff.tsx'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\components\Scanner.tsx' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\components\Scanner.tsx'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\components\Torch.tsx' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\components\Torch.tsx'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\components\Zoom.tsx' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\components\Zoom.tsx'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\hooks\useCamera.ts' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\hooks\useCamera.ts'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\hooks\useDevices.ts' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\hooks\useDevices.ts'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\hooks\useScanner.ts' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\hooks\useScanner.ts'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\misc\defaultComponents.ts' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\misc\defaultComponents.ts'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\misc\defaultConstraints.ts' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\misc\defaultConstraints.ts'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\misc\defaultStyles.ts' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\misc\defaultStyles.ts'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\misc\overlays.ts' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\misc\overlays.ts'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\misc\shimGetUserMedia.ts' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\misc\shimGetUserMedia.ts'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\utilities\deepEqual.ts' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\utilities\deepEqual.ts'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\utilities\idempotent.ts' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\utilities\idempotent.ts'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\utilities\isDateObject.ts' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\utilities\isDateObject.ts'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\utilities\isNullOrUndefined.ts' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\utilities\isNullOrUndefined.ts'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\utilities\isObject.ts' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\utilities\isObject.ts'

WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\utilities\isPrimitive.ts' file: Error: ENOENT: no such file or directory, open 'D:\programming\tnm_firestore\node_modules\@yudiel\react-qr-scanner\src\utilities\isPrimitive.ts'
ShanksFD commented 2 months ago

I'm having the same problem and waiting for a fix too

BrunoTeixeiraNDB commented 1 month ago

I'm having the same problem...

short-dsb commented 1 month ago

Regression of #38.

yitzgold commented 1 month ago

I'm having the same issue.

stale[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.