Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo图和运行出来的项目不一样😂 #24

Closed
huanghui1 opened this issue Feb 10, 2022 · 2 comments
Closed

demo图和运行出来的项目不一样😂 #24

huanghui1 opened this issue Feb 10, 2022 · 2 comments

Comments

@huanghui1
Copy link

No description provided.

@huanghui1
Copy link
Author

把pages/index.js里的App组件替换成import App from './app.js';解决了。

@SeekPoint
Copy link

SeekPoint commented Sep 20, 2022

改了之后出现

ERROR in ./pages/app.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom.iterable.js' in 'C:\react-graph\g6-in-react\pages'
@ ./pages/app.js 1:0-45
@ ./pages/index.js
@ multi webpack-dev-server/client?http://localhost:8080 ./pages/index.js
Child HtmlWebpackCompiler:

我升级了版本:
"dependencies": {
"@antv/g6": "^4.7.0",
"antd": "^4.23.0",
"html-webpack-plugin": "^4.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"webpack": "^4.42.1"
},
"devDependencies": {
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"@babel/core": "^7.9.6",
"babel-loader": "^8.1.0",
"css-loader": "^3.5.2",
"postcss-loader": "^3.0.0",
"style-loader": "^1.1.4",
"ts-loader": "^7.0.0",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.10.3"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants