DEV Community

ochieng seth
ochieng seth

Posted on

error: bundling failed: TypeError: Cannot read property 'transformFile' of undefined

I got this error when trying to build my react native app after doing installs of node and npm. My machine was running nodejs v17(currently latest) and this was the issue.
The solution is to uninstall nodejs, then download and install a lower version and for my case i installed nodejs v16.13.0 which solved the error.
Hope this helps you,
Happy coding

Discussion (0)