To Fix error: TypeError: Cannot read properties of undefined (reading ‘transformFile’) Error just Downgrade the nodejs version . You have to just downgrade the nodejs version to 14.18.1. Just delete node_modules and reinstalled it. By doing this you can easily solve your problem. Try it.