gruhn / vue-qrcode-reader

A set of Vue.js components for detecting and decoding QR codes.
https://gruhn.github.io/vue-qrcode-reader
MIT License
2.03k stars 330 forks source link

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

Closed exptom closed 2 months ago

exptom commented 2 months ago

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 commented 2 months ago

thanks for the hint :+1:

github-actions[bot] commented 2 months ago

:tada: This issue has been resolved in version 5.5.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: