Я устанавливаю @magento PWA, используя пряжу со ссылкой на этот документ,
https://magento -research.github.io / pwa-studio / venia-pwa-concept / setup /
До шагов 3 все идет хорошо, но сейчас, пока я пытаюсь выполнить yarn run build
, получаю ошибку ниже
sudo yarn run build
yarn run v1.16.0
$ yarn workspaces run build
$ cp ../../magento-compatibility.js ./lib/
$ concurrently --raw yarn:build:cjs yarn:build:esm
$ BABEL_ENV=production babel src --out-dir dist --root-mode 'upward' --source-maps
$ BABEL_ENV=development babel src --out-dir esm --root-mode 'upward' --source-maps
SyntaxError: src/ContainerChild/ContainerChild.js: Unexpected token (5:21)
3 |
4 | export default class ContainerChild extends Component {
> 5 | static propTypes = {
| ^
6 | id: string.isRequired,
7 | render: func.isRequired
8 | };
SyntaxError: src/ContainerChild/ContainerChild.js: Unexpected token (5:21)
3 |
4 | export default class ContainerChild extends Component {
> 5 | static propTypes = {
| ^
6 | id: string.isRequired,
7 | render: func.isRequired
8 | };
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: /usr/local/bin/node
Arguments: /usr/share/yarn/lib/cli.js build
Directory: /var/www/html/mage2.3pwa/pwa-studio/packages/peregrine