[X] This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
Description
Hey there,
I am right now working in application that I have created in Gatsby environment. In that I have migrate my app from gatsby V3 to V4. when I run gatsby build it cause problem like below.
Error: Generated engines use disallowed import "babel-runtime/helpers/asyncToGenerator". Only allowed imports are to Node.js builtin modules or engines internals.
Preliminary Checks
Description
Hey there, I am right now working in application that I have created in Gatsby environment. In that I have migrate my app from gatsby V3 to V4. when I run gatsby build it cause problem like below.
success Execute page configs - 0.030s failed Validating Rendering Engines - 3.768s
ERROR #98001 WEBPACK
Built Rendering Engines failed validation failed validation.
Please open an issue with a reproduction at https://github.com/gatsbyjs/gatsby/issues/new for more help
Error: Generated engines use disallowed import "babel-runtime/helpers/asyncToGenerator". Only allowed imports are to Node.js builtin modules or engines internals.
child.ts:60 Function._module.default._load [decodeup-dev]/[gatsby]/src/utils/validate-engines/child.ts:60:11
loader.js:957 Module.require internal/modules/cjs/loader.js:957:19
helpers.js:88 require internal/modules/cjs/helpers.js:88:18
index.js:141963 Object.defineProperty.value D:/Zinal/decodeup-dev/.cache/query-engine/index.js:141963:18
index.js:600587 __webpack_require__ D:/Zinal/decodeup-dev/.cache/query-engine/index.js:600587:42
index.js:549013 Object.
D:/Zinal/decodeup-dev/.cache/query-engine/index.js:549013:26
index.js:600587 __webpack_require__ D:/Zinal/decodeup-dev/.cache/query-engine/index.js:600587:42
index.js:187064 Module.__webpack_modules__.setActions.setActions D:/Zinal/decodeup-dev/.cache/query-engine/index.js:187064:112
index.js:600587 __webpack_require__ D:/Zinal/decodeup-dev/.cache/query-engine/index.js:600587:42
index.js:600736 D:/Zinal/decodeup-dev/.cache/query-engine/index.js:600736:27
index.js:600914 D:/Zinal/decodeup-dev/.cache/query-engine/index.js:600914:3
index.js:600919 Object.
D:/Zinal/decodeup-dev/.cache/query-engine/index.js:600919:12
loader.js:1068 Module._compile internal/modules/cjs/loader.js:1068:30
loader.js:1097 Object.Module._extensions..js internal/modules/cjs/loader.js:1097:10
loader.js:933 Module.load internal/modules/cjs/loader.js:933:32
loader.js:774 Module._load internal/modules/cjs/loader.js:774:14
Reproduction Link
https://github.com/
Steps to Reproduce
migrate gatsby app to V3 to V4 and then run gatsby build
Expected Result
Gatbsy application will successfully serve in local.
Actual Result
Getting error like "Built Rendering Engines failed validation failed validation."
Environment
Config Flags
No response