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

Source maps seem to be broken in 2.7.0 #211

Closed
yairy opened this issue Sep 20, 2022 · 6 comments
Closed

Source maps seem to be broken in 2.7.0 #211

yairy opened this issue Sep 20, 2022 · 6 comments

Comments

@yairy
Copy link

yairy commented Sep 20, 2022

Since the version upgrade from 2.6.0 to 2.7.0, getting the following error repeatedly when trying to build a CRA app:

WARNING in ./node_modules/usehooks-ts/dist/esm/useDebounce/useDebounce.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/.../node_modules/usehooks-ts/src/useDebounce/useDebounce.ts' file: Error: ENOENT: no such file or directory, open '/Users/.../node_modules/usehooks-ts/src/useDebounce/useDebounce.ts'
@yairy yairy changed the title SourceMaps seem to broken in 2.7.0 Source maps seem to broken in 2.7.0 Sep 20, 2022
@yairy yairy changed the title Source maps seem to broken in 2.7.0 Source maps seem to be broken in 2.7.0 Sep 20, 2022
@mjarlund
Copy link

Seems to be broken in 2.6.0 as well, I tried downgrading and it still gives me warnings about the missing source maps.

@yairy
Copy link
Author

yairy commented Sep 20, 2022

2.6.0 works for me, did you omit the ^ from the version number?
"usehooks-ts": "2.6.0"

@mjarlund
Copy link

Yes I did, I just figured it out, it was an issue related to running node 16.13.1 for some odd reason, I've upgraded to 16.17.0 and experiencing the same thing you are.

@juliencrn
Copy link
Owner

Oh damn it, I will check that asap, thanks for the report

@juliencrn
Copy link
Owner

Source-map have been removed in usehooks-ts@2.7.1

https://github.com/juliencrn/usehooks-ts/releases/tag/usehooks-ts%402.7.1

Is everything ok?

@yairy
Copy link
Author

yairy commented Sep 22, 2022

@juliencrn Yes, it's okay now. Thanks a lot   🙏

@yairy yairy closed this as completed Sep 22, 2022
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

3 participants