mirror of
https://github.com/lecepin/WeChatVideoDownloader.git
synced 2025-09-20 02:49:57 +08:00
fix:在windows10专业版本下面antd4.20.5版本报错以及更新最近antd5.6.1版本后的错误
错误1:在windows10专业版本下面antd4.20.5版本报错:Failed to parse source map: 'webpack://antd/./components/config-provider/style/index.less' URL is not supported 错误2:使用npm更新最新版本antd5.6.1后,报错ERROR in ./src/index.js 7:0-28 Module not found: Error: Can't resolve 'antd/dist/antd.css'
This commit is contained in:
parent
a31c15a1f4
commit
fcee483633
@ -50,7 +50,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design/icons": "^4.7.0",
|
"@ant-design/icons": "^4.7.0",
|
||||||
"@xstate/react": "^3.0.0",
|
"@xstate/react": "^3.0.0",
|
||||||
"antd": "^4.20.5",
|
"antd": "^5.6.1",
|
||||||
"axios": "^0.27.2",
|
"axios": "^0.27.2",
|
||||||
"cross-spawn": "^7.0.3",
|
"cross-spawn": "^7.0.3",
|
||||||
"electron-is-dev": "^2.0.0",
|
"electron-is-dev": "^2.0.0",
|
||||||
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import ReactDOM from 'react-dom/client';
|
import ReactDOM from 'react-dom/client';
|
||||||
import App from './App';
|
import App from './App';
|
||||||
|
|
||||||
import 'antd/dist/antd.css';
|
import 'antd/dist/antd.js.map';
|
||||||
|
|
||||||
const root = ReactDOM.createRoot(document.getElementById('root'));
|
const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||||
root.render(
|
root.render(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user