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

Incorrect file extension in "exports" (package.json) #427

Closed
exptom opened this issue Apr 16, 2024 · 2 comments · Fixed by #430
Closed

Incorrect file extension in "exports" (package.json) #427

exptom opened this issue Apr 16, 2024 · 2 comments · Fixed by #430
Labels

Comments

@exptom
Copy link

exptom commented Apr 16, 2024

Describe the bug
There are 2 references to "./dist/vue-qrcode-reader.umd.cjs" in the package.json. But that file does not exist in the dist directory. This is causing eslint to throw errors relating to not being able to find an import.

To Reproduce
yarn install vue-qrcode-reader

Attempt to import something, e.g.: import { QrcodeStream } from 'vue-qrcode-reader'

Run eslint on project and hit error:

1:1   error  Resolve error: Cannot find module '/the/path/to/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.umd.cjs'

Note that the import works fine when running our app (using vite to build) but eslint fails.

gruhn added a commit that referenced this issue Apr 19, 2024
@gruhn
Copy link
Owner

gruhn commented Apr 19, 2024

thanks for the hint 👍

Copy link

🎉 This issue has been resolved in version 5.5.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

2 participants