0
我试图在我的Meteor应用程序中安装Angular QR Scanner。似乎安装它的唯一方法是使用Bower,然而bower support for Meteor seems to be deprecated now for 1.3。我尝试使用npm install
进行安装,但是我收到一个错误,即qrcode.decode is not a function
,尽管导入了两个需要的文件。使用Meteor安装bower组件(angular-qr-scanner)
是否有另一种方法使用Meteor安装凉亭组件?
有时应该使用require('module-name')导入包,因为它可能不会导出变量供您使用导入 – Mikkel