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
任选其一安装即可。
本文讲述了在Vue3项目中使用vue-qrcode插件时遇到的错误,报错提示需将qrcode路径标记为外部。解决方法是通过yarn或npm安装qrcode包,从而排除错误并保持未解析路径。
1万+

被折叠的 条评论
为什么被折叠?



