You may need an appropriate loader to handle this file type.您可能需要适当的加载程序来处理此文件类型。

try { |           
a = this.$refs.canvas.getContext("2d"), a.drawImage(this.$refs.main, 0, 0); |         } catch { |       
  } |    
     this.$nextTick(() => {

今天下载项目npm i 后 报错You may need an appropriate loader to handle this file typ,后面百度都没有发现错误在哪里,

最后安装了   ,解决了

npm i webpack-dev-server 

你可能感兴趣的:(npmi,图片加载,错误处理,前端开发)