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.
本文标签:
版权声明:本文标题:"Module parse failed: Cannot use keyword 'await' outside an async function" on yarn build - St 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744696743a2620323.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论