Vue3中安装使用vue-qrcode后报错,报错内容为:You can mark the path “qrcode” as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
报错内容意思是:您可以将路径“qrcode”标记为外部,以将其从捆绑包中排除,这将删除此路径错误并将未解析的路径留在包中。
只需要安装下qrcode这个包即可解决。
安装代码:
yarn add qrcode
npm i qrcode
任选其一安装即可。