Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.0.4版本 RN build失败 #133

Open
aispringli opened this issue Jul 31, 2024 · 1 comment
Open

4.0.4版本 RN build失败 #133

aispringli opened this issue Jul 31, 2024 · 1 comment

Comments

@aispringli
Copy link

Failed to construct transformer: TypeError: Transformer is not a constructor at getTransformCacheKey (W:\codes\gitlab\app\RnApp\node_modules\metro\src\DeltaBundler\Transformer\getTransformCacheKey.js:33:31) at new Transformer (W:\codes\gitlab\app\RnApp\node_modules\metro\src\DeltaBundler\Transformer.js:147:28) at W:\codes\gitlab\app\RnApp\node_modules\metro\src\Bundler.js:54:29 error Cannot read properties of undefined (reading 'transformFile'). Run CLI with --verbose flag for more details. TypeError: Cannot read properties of undefined (reading 'transformFile') at W:\codes\gitlab\app\RnApp\node_modules\metro\src\Bundler.js:91:34 at Generator.next (<anonymous>) at asyncGeneratorStep (W:\codes\gitlab\app\RnApp\node_modules\metro\src\Bundler.js:14:24) at _next (W:\codes\gitlab\app\RnApp\node_modules\metro\src\Bundler.js:34:9)

@Engimaz
Copy link

Engimaz commented Dec 3, 2024

发一下你的package.json。我最近也遇到过。注意metro版本与之对应即可解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants