问题:
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

在vue-cli的vue.config.js文件中配置属性
module.exports = {
// 处理screenfull的webpack问题
transpileDependencies:['screenfull'],
}
这样就可以解决问题了。
本文介绍了解决Webpack在处理特定文件类型时遇到的问题的方法。通过在vue-cli项目的vue.config.js文件中配置transpileDependencies属性,可以指定使用适当的加载器来处理这类文件类型。

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



