@symnoob

Symfony — как правильно настроить Webpack в Symfony для работы с React?

Попробовал подключить React в Symfony, и тут же посыпались ошибки.
помогите пожалуйста настроить WebpackEncore...

Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-class-properties (https://git.io/vb4yQ) to the 'plugins' section to enable parsing.


Ошибка:
class App extends React.Component {
     state = {
              ^
         data: [],
         pagination: {
             current: 1,
  • Вопрос задан
  • 95 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы