我使用create-react-app
创建了一个项目,我将此应用与admin-on-rest
包一起使用。
当我运行yarn start
时,收到以下错误消息:
./~/admin-on-rest/src/mui/input/TextInput.js
Module parse failed:
/path/to/app/Resources/backend/node_modules/admin-on-rest/src/mui/input/TextInput.js Unexpected token (21:15)
You may need an appropriate loader to handle this file type.
| */
| export class TextInput extends Component {
| handleBlur = (eventOrValue) => {
| this.props.onBlur(eventOrValue);
| this.props.input.onBlur(eventOrValue);
导致该错误消息的行是:
| handleBlur = (eventOrValue) => {
我应该添加哪个加载程序?我该如何添加它?