Что вызывает "Ошибка разбора модуля" и как это исправить?
Я создал проект с 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) => {
Какой загрузчик мне добавить? И как я могу добавить это?