You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to react-native version 0.56.0 my metro build fails with the error message TypeError: Cannot read property 'ast' of null.
I also read this issue #19827 but could not fix my issue with the suggestions there.
From the error message it seams the bug is in the metro src.
Detailed error message:
error: bundling failed: TypeError: Cannot read property 'ast' of null
at Object.transform (/Users/david/projects/churchtools-mobile/node_modules/metro/src/reactNativeTransformer.js:167:48)
at Object.<anonymous> (/Users/david/projects/churchtools-mobile/node_modules/metro/src/JSTransformer/worker.js:204:23)
at Generator.next (<anonymous>)
at step (/Users/david/projects/churchtools-mobile/node_modules/metro/src/JSTransformer/worker.js:328:291)
at /Users/david/projects/churchtools-mobile/node_modules/metro/src/JSTransformer/worker.js:328:521
at new Promise (<anonymous>)
at Object.<anonymous> (/Users/david/projects/churchtools-mobile/node_modules/metro/src/JSTransformer/worker.js:328:202)
at Object.transformCode [as transform] (/Users/david/projects/churchtools-mobile/node_modules/metro/src/JSTransformer/worker.js:292:93)
at execMethod (/Users/david/projects/churchtools-mobile/node_modules/jest-worker/build/child.js:90:29)
The text was updated successfully, but these errors were encountered:
Do you have ignore section in your .babelrc by any chance? It doesn't work for me well (config gets unresolved, and babel transformation fails), so I removed this section for now. Probably also need to test with newer babel / metro and file an issue.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.
Environment
Run
react-native info
in your terminal and paste its contents here.Description
After upgrading to react-native version
0.56.0
my metro build fails with the error messageTypeError: Cannot read property 'ast' of null
.I also read this issue #19827 but could not fix my issue with the suggestions there.
From the error message it seams the bug is in the metro src.
Detailed error message:
The text was updated successfully, but these errors were encountered: