Skip to content
New issue

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

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

Already on GitHub? # to your account

Invalid source maps #142

Closed
benmccann opened this issue Aug 20, 2021 · 0 comments · Fixed by #155
Closed

Invalid source maps #142

benmccann opened this issue Aug 20, 2021 · 0 comments · Fixed by #155

Comments

@benmccann
Copy link
Contributor

Reproduce with:

npm install blurhash
cat node_modules/blurhash/dist/index.js.map

The source map points at a file that does not exist:

"sources":["../src/index.ts"]

As a result, this library cannot be used with Vite which tries to load source maps when the server is started so that it can transform them when it transforms code in the library:

08:57:06 [vite] Internal server error: ENOENT: no such file or directory, open 'node_modules/blurhash/src/index.ts'
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant