我发布了一个关于fullcalendar的webpack出现问题的问题。
[How do I import FullCalendar on my React Project?
经过长时间的检查,我发现@ fullcalendar / react在构建项目的React 15.4.1上不起作用。我为反应15和反应16创建了样板代码。相同的代码在16上有效,但是在15上无效。当我尝试升级项目时,它会引发多个错误。我如何在没有jquery的react 15.4.1项目中实现Fullcalender(正在运行)?还是有什么办法可以在不破坏代码的情况下升级我的项目以响应16?我确实使用npm i -g npm-check-updates
ncu -u
npm install
命令升级了代码,该命令将所有包从我的package.json文件更新为最新版本。我想将我的软件包更新为与我的代码兼容的最新版本。
npm i -g npm-check-updates
ncu -u
npm install
"name": "medfix",
"version": "0.1.0",
"private": true,
"dependencies": {
"@fullcalendar/core": "^4.1.0",
"@fullcalendar/daygrid": "^4.1.0",
"@fullcalendar/interaction": "^4.1.0",
"@fullcalendar/react": "^4.1.0",
"fullcalendar": "^3.10.0",
"jquery": "^3.4.1",
"moment": "^2.24.0",
"react": "^15.4.1",
"react-dom": "^15.4.1",
"react-scripts": "3.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}```
Doesn't works on this version.
[1]: https://stackoverflow.com/questions/56351367/how-do-i-import-fullcalendar-on-my-react-project