javascript - Metro bundler: Cannot read properties of undefined (reading 'transformFile') - Stack Overflow

I've stuck with a problem after update my project to expo SDK 43I've tried differentLTS no

I've stuck with a problem after update my project to expo SDK 43 I've tried different LTS node version (14.8.1 ,16.1.3 and 17.0.1) but the problem was not solved. My colleagues have not this problem on thier macs with intel chipset so I think it's can be cause by macbook with m1 chipset.

I will be very thankful if you can help me to solve this metro bundler problem

System:
    OS: macOS 12.0.1
    CPU: (8) x64 Apple M1
    Memory: 24.91 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.13.0 - /var/folders/7x/bz3djxwn5kd3k16j2015bvhc0000gn/T/yarn--1637063410446-0.9243514868796017/node
    Yarn: 1.22.10 - /var/folders/7x/bz3djxwn5kd3k16j2015bvhc0000gn/T/yarn--1637063410446-0.9243514868796017/yarn
    npm: 6.14.11 - /usr/local/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
  Languages:
    Java: Not Found
  npmPackages:
    @react-native-munity/cli: Not Found
    react: 17.0.1 => 17.0.1 
    react-native: 0.64.2 => 0.64.2 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

IOS simulator log

Terminal log

I've stuck with a problem after update my project to expo SDK 43 I've tried different LTS node version (14.8.1 ,16.1.3 and 17.0.1) but the problem was not solved. My colleagues have not this problem on thier macs with intel chipset so I think it's can be cause by macbook with m1 chipset.

I will be very thankful if you can help me to solve this metro bundler problem

System:
    OS: macOS 12.0.1
    CPU: (8) x64 Apple M1
    Memory: 24.91 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.13.0 - /var/folders/7x/bz3djxwn5kd3k16j2015bvhc0000gn/T/yarn--1637063410446-0.9243514868796017/node
    Yarn: 1.22.10 - /var/folders/7x/bz3djxwn5kd3k16j2015bvhc0000gn/T/yarn--1637063410446-0.9243514868796017/yarn
    npm: 6.14.11 - /usr/local/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
  Languages:
    Java: Not Found
  npmPackages:
    @react-native-munity/cli: Not Found
    react: 17.0.1 => 17.0.1 
    react-native: 0.64.2 => 0.64.2 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

IOS simulator log

Terminal log

Share Improve this question edited Nov 16, 2021 at 22:29 jonrsharpe 122k30 gold badges267 silver badges474 bronze badges asked Nov 16, 2021 at 11:47 Andrii khmelovskyiAndrii khmelovskyi 511 gold badge1 silver badge2 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

The issue is probably due to node 17.x, i remande downgrading to node 14.18.1, then delete node_modules and reinstall them.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742268503a4412252.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信