Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack 5 build warnings for WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js #46

Closed
Gummy47 opened this issue Apr 25, 2024 · 7 comments

Comments

@Gummy47
Copy link

Gummy47 commented Apr 25, 2024

Hi there, first of all thanks for this sweet little lib!

I'm using Webpack 5 and having warnings on build concerning thumbmark.esm.js :

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\audio\audio.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\audio\audio.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\canvas\canvas.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\canvas\canvas.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\fonts\fonts.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\fonts\fonts.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\hardware\hardware.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\hardware\hardware.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\locales\locales.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\locales\locales.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\math\math.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\math\math.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\permissions\permissions.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\permissions\permissions.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\plugins\plugins.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\plugins\plugins.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\screen\screen.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\screen\screen.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\system\browser.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\system\browser.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\system\system.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\system\system.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\webgl\webgl.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\components\webgl\webgl.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\factory.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\factory.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\fingerprint\functions.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\fingerprint\functions.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\fingerprint\options.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\fingerprint\options.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\index.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\index.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmar
WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\utils\ephemeralIFrame.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\utils\ephemeralIFrame.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\utils\getMostFrequent.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\utils\getMostFrequent.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\utils\hash.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\utils\hash.ts'

WARNING in ./node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\utils\raceAll.ts' file: Error: ENOENT: no such file or directory, open 'C:\git\path\project\node_modules\@thumbmarkjs\thumbmarkjs\src\utils\raceAll.ts'

webpack compiled with 21 warnings
No issues found.

It's a shame since the module itself works nicely.

I added a ignoreWarnings: [/Failed to parse source map/] entry in my webpack.config.js for now, but I was wondering if maybe there was a better way for handling this.

Thanks in advance!

@ilkkapeltola
Copy link
Collaborator

Probably a mistake in my package.json

@ilkkapeltola
Copy link
Collaborator

@Gummy47 can you help me set up an integration testing thing?
If you could send a directory that I can run build in to get the errors?
Helping me reproduce the errors would accelerate fixing it.

@ilkkapeltola
Copy link
Collaborator

I put in some work for this and can't reproduce the issue. Let me know if you can help me reproduce it.

@Gummy47
Copy link
Author

Gummy47 commented May 16, 2024

Hey, sorry, I ended up removing thumbmarkjs from my project after all, can't really give you a repro since it seems to be specific to my own project. I am using typescript, maybe something to do with how the sourcemaps were handled by default since had no specification for that in my tsconfig. If you can't reproduce and nobody else had these warnings, let's close the issue since it's non-breaking anyway and call it a no-repro. Thanks for your feedback though!

@ilkkapeltola
Copy link
Collaborator

Can't reproduce

@ilkkapeltola ilkkapeltola closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
@ilkkapeltola
Copy link
Collaborator

@Gummy47 did you go with another fingerprinting library? If so, what was the deciding factor?

@Gummy47
Copy link
Author

Gummy47 commented May 16, 2024

@Gummy47 did you go with another fingerprinting library? If so, what was the deciding factor?

Nope, it simply turned out to be overkill for what I was implementing. Still solid tool, won't hesitate to reuse again if needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants