测试环境chrome控制台关于source map的一系列警告解决

DevTools failed to load source map: Could not load content for webpack:///node_modules/element-plus/es/index.mjs.map: Fetch through target failed: Unsupported URL scheme; Fallback: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

解决

webpack.config.js 或者vue.config.js中添加devtool: 'inline-source-map'


以vue.config.js为例
module.exports = {
	//  web配置
	configureWebpack: {
		devtool: 'inline-source-map',
	},
}

posted @ 2023-04-20 10:22  huihuihero  阅读(481)  评论(0编辑  收藏  举报