问题:
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'],
}
这样就可以解决问题了。