Expo keeps on building JavaScript bundle on Android

  1. SDK Version: 41/40
  2. Platforms(Android/iOS/web/all): Android
  3. Developing in expo android

the system keeps on non stop building bundle after running expo go on android but ios is fine.
like:
Building JavaScript bundle: finished in 391ms.
Building JavaScript bundle: finished in 76ms.
Building JavaScript bundle: finished in 399ms.
Building JavaScript bundle: finished in 81ms.
Building JavaScript bundle: finished in 442ms.

any ideas? got this error

Error: EISDIR: illegal operation on a directory, read
    at Object.readSync (fs.js:506:3)
    at tryReadSync (fs.js:331:20)
    at Object.readFileSync (fs.js:368:19)
    at UnableToResolveError.buildCodeFrameMessage (/Users/chuanxie/Git/apollo-app/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:304:17)
    at new UnableToResolveError (/Users/chuanxie/Git/apollo-app/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:290:35)
    at ModuleResolver.resolveDependency (/Users/chuanxie/Git/apollo-app/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:168:15)
    at DependencyGraph.resolveDependency (/Users/test/Git/apollo-app/node_modules/metro/src/node-haste/DependencyGraph.js:353:43)
    at /Users/test/Git/apollo-app/node_modules/metro/src/lib/transformHelpers.js:271:42
    at Server.<anonymous> (/Users/test/Git/apollo-app/node_modules/metro/src/Server.js:842:41)
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/Users/test/Git/apollo-app/node_modules/metro/src/Server.js:99:24)
    at _next (/Users/test/Git/apollo-app/node_modules/metro/src/Server.js:119:9)```

Hey @jjfoodservice, can you run expo diagnostics and share what’s printed out? Also, is this occurring with a newly created project or a specific project?

Cheers,
Adam

Expo CLI 4.4.3 environment info:
    System:
      OS: macOS 10.15.7
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 12.14.1 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 7.6.1 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.9.1 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: iOS 14.3, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
    IDEs:
      Android Studio: 4.1 AI-201.8743.12.41.6858069
      Xcode: 12.3/12C33 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^41.0.0 => 41.0.1
      react: 17.0.2 => 17.0.2
      react-dom: 17.0.2 => 17.0.2
      react-native: https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz => 0.63.2
    npmGlobalPackages:
      expo-cli: 4.4.3
    Expo Workflow: managed

@adamjnav its a old project. works fine for newly created.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.