admin管理员组

文章数量:1390634

I'm having a problem running yarn build. It started happening out of nowhere. It used to work fine before. Has anyone encountered this issue and managed to solve it?

$ yarn run build
yarn run v1.22.22
$ yarn del src/**/*.generated.tsx && yarn codegen:generate
$ /home/project/frontend/node_modules/.bin/del 'src/**/*.generated.tsx'
$ graphql-codegen --config codegen.yml
  ✔ Parse configuration
  ✔ Generate outputs
$ react-scripts build
Creating an optimized production build...
Failed to compile.

./node_modules/yoga-layout/dist/src/index.js 13:26
Module parse failed: Cannot use keyword 'await' outside an async function (13:26)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| import loadYoga from '../binaries/yoga-wasm-base64-esm.js';
| import wrapAssembly from "./wrapAssembly.js";
> const Yoga = wrapAssembly(await loadYoga());
| export default Yoga;
| export * from "./generated/YGEnums.js";


error Command failed with exit code 1.
info Visit  for documentation about this command.

本文标签: