Closed swana1337 closed 3 years ago
this file isnt necessary to use this package, just revert this file back what it is before, if u dont hv this file originally, remove this file.
if i remove it i got an error in main.ts
if i got the other file it works
i initialize a vue project with vue cli shims-vue.d.ts orginally has these code. Try copy these to shims-vue.d.ts?
/* eslint-disable */
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
now it compiles at least, but it still doesn't work to run. Nevertheless, thank you for the help :)
I don't know why it doesn't work in your project. I just create a new vue project and try to install this package What i did,
<template>
<qr-stream></qr-stream>
</template>
4. modify shims-vue.d.ts file
``` ts
/* eslint-disable */
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
declare module 'vue3-qr-reader' {
export {
QrStream
}
}
Looks like you gave up using this package, I will close this issue. Open issue again if you have other question, thanks.
hello, i was just trying to code along the demo.![image](https://user-images.githubusercontent.com/33859359/108179829-58e3d200-7106-11eb-8ec2-c82f66a86b1d.png)
in the shim-vue.d.ts file i got an error: Parsing error: Imports within a
declare module
body must always beimport type
orimport typeof
Can you think of why this is happening? Thanks