企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
``` Uncaught TypeError: _react.PropTypes is undefined ``` ``` import React,{PropTypes} from 'react'; ``` ``` import React,{PropTypes} from 'react'; import PropTypes from 'prop-types'; ``` ``` import PropTypes from 'prop-types'; | ^ 3 | 4 | propsTypes = { 5 | name:PropTypes.string.isRequired, at transpile (E:\react108\node_modules\babel-loader\lib\index.js:65:13) at Object.module.exports (E:\react108\node_modules\babel-loader\lib\index.js:173:20) @ ./src/index.jsx 11:15-39 webpack 5.58.0 compiled with 1 error in 119 ms i 「wdm」: Failed to compile. ``` ``` import React from 'react'; import PropTypes from 'prop-types'; ```