Failed to parse source map: 'webpack://...style/index.less' URL is not supported

来源:6-8 清除前面课程留下的警告信息

慕移动148488

2022-09-27

环境依赖:
“react-scripts”: “5.0.1”,
“typescript”: “^4.8.2”

问题描述:
Failed to parse source map: ‘webpack://antd/./components/config-provider/style/index.less’ URL is not supported
Failed to parse source map: ‘webpack://antd/./components/icon/style/index.less’ URL is not supported
Failed to parse source map: ‘webpack://antd/./components/locale-provider/style/index.less’ URL is not suppor
Failed to parse source map: ‘webpack://antd/./components/time-picker/style/index.less’ URL is not supported

写回答

1回答

慕侠9224627

2022-10-11

在.env. 中添加

GENERATE_SOURCEMAP=false

3
0

React17+Hook+TS4 优质实践,仿 Jira 企业级项目

解锁 React17 高阶用法,轻松应对大型复杂长周期项目

2691 学习 · 1236 问题

查看课程