Closed shalugin closed 2 months ago
Hey thanks for the report!
I'm not sure why there isn't 🤔 wasm-bindgen is the one creating this file, maybe I should add a main entry by hand then! Just to be sure, the main entry would be "fast_qr.js"?
By the way, which tool are you using? I didn't have a problem with NPM 🤔
This error message was issued by vitest (https://vitest.dev /). I fixed it as follows (`vite.config.ts'):
{
find: /^fast_qr$/,
replacement: __dirname + '/node_modules/fast_qr/fast_qr.js',
},
Hey thanks for the report!
I'm not sure why there isn't 🤔 wasm-bindgen is the one creating this file, maybe I should add a main entry by hand then! Just to be sure, the main entry would be "fast_qr.js"?
Yes)
It should be fixed in https://www.npmjs.com/package/fast_qr/v/0.12.5?activeTab=code
Thanks for the quick fix!
Hi. Why is there no
main
entry in thepackage.json
file? Some tools consider it as an error:https://www.npmjs.com/package/fast_qr?activeTab=code