最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin6浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论