[ios.dangerous]: withIosDangerousBaseMod: Cannot find module 'chalk'

See original GitHub issue

Build/Submit details page URL

https://expo.dev/accounts/pavnlimitedcompany/projects/tlcn/builds/2b41f7c0-29c4-4313-a450-f38396465b2e

Summary

2 days ago, I built with eas build successfully. However, I got the below error for today’s build

[PREBUILD] ✖ Config sync failed [PREBUILD] [13:29:06] [ios.dangerous]: withIosDangerousBaseMod: Cannot find module 'chalk'

I don’t change anything in my source code. I think it’s a build process bug.

Managed or bare?

Managed

Environment

expo-env-info 1.0.2 environment info: System: OS: macOS 11.6.4 Shell: 5.8 - /bin/zsh Binaries: Node: 14.16.0 - ~/.nvm/versions/node/v14.16.0/bin/node Yarn: 1.22.17 - ~/.yarn/bin/yarn npm: 6.14.11 - ~/.nvm/versions/node/v14.16.0/bin/npm Watchman: 2021.09.13.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7784292 Xcode: 13.0/13A233 - /usr/bin/xcodebuild npmPackages: expo: ^43.0.0 => 44.0.6 react: 17.0.1 => 17.0.1 react-dom: 17.0.1 => 17.0.1 react-native: 0.64.3 => 0.64.3 react-native-web: 0.17.1 => 0.17.1 npmGlobalPackages: eas-cli: 0.48.2 expo-cli: 5.3.0 Expo Workflow: managed

Error output

[PREBUILD] - Config syncing [PREBUILD] ✖ Config sync failed [PREBUILD] [13:29:06] [ios.dangerous]: withIosDangerousBaseMod: Cannot find module ‘chalk’ [PREBUILD] Require stack: [PREBUILD] - /private/var/folders/bk/2p_w9p8j3ys3f786dc6t94dw0000gp/T/eas-build-local-nodejs/ac25c6d9-c55c-4706-b947-85b48c0f49bb/build/node_modules/@expo/image-utils/build/Image.js [PREBUILD] - /private/var/folders/bk/2p_w9p8j3ys3f786dc6t94dw0000gp/T/eas-build-local-nodejs/ac25c6d9-c55c-4706-b947-85b48c0f49bb/build/node_modules/@expo/image-utils/build/index.js [PREBUILD] - /private/var/folders/bk/2p_w9p8j3ys3f786dc6t94dw0000gp/T/eas-build-local-nodejs/ac25c6d9-c55c-4706-b947-85b48c0f49bb/build/node_modules/expo-splash-screen/node_modules/@expo/prebuild-config/build/plugins/unversioned/expo-splash-screen/withIosSplashAssets.js [PREBUILD] - /private/var/folders/bk/2p_w9p8j3ys3f786dc6t94dw0000gp/T/eas-build-local-nodejs/ac25c6d9-c55c-4706-b947-85b48c0f49bb/build/node_modules/expo-splash-screen/node_modules/@expo/prebuild-config/build/plugins/unversioned/expo-splash-screen/withIosSplashScreen.js [PREBUILD] - /private/var/folders/bk/2p_w9p8j3ys3f786dc6t94dw0000gp/T/eas-build-local-nodejs/ac25c6d9-c55c-4706-b947-85b48c0f49bb/build/node_modules/expo-splash-screen/plugin/build/withSplashScreen.js [PREBUILD] - /private/var/folders/bk/2p_w9p8j3ys3f786dc6t94dw0000gp/T/eas-build-local-nodejs/ac25c6d9-c55c-4706-b947-85b48c0f49bb/build/node_modules/expo-splash-screen/app.plugin.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/node_modules/@expo/config-plugins/build/utils/plugin-resolver.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/node_modules/@expo/config-plugins/build/plugins/withStaticPlugin.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/node_modules/@expo/config-plugins/build/plugins/withPlugins.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/node_modules/@expo/config-plugins/build/index.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/node_modules/@expo/config/build/plugins/withConfigPlugins.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/node_modules/@expo/config/build/Config.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/node_modules/@expo/config/build/index.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/build/getPrebuildConfig.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/build/index.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/expo-cli/build/commands/eject/configureProjectAsync.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/expo-cli/build/commands/eject/prebuildAppAsync.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/expo-cli/build/commands/eject/prebuildAsync.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/expo-cli/build/commands/eject/prebuild.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/expo-cli/build/commands/index.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/expo-cli/build/exp.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/expo-cli/bin/expo.js [PREBUILD] [13:29:06] Error: [ios.dangerous]: withIosDangerousBaseMod: Cannot find module ‘chalk’ [PREBUILD] Require stack: [PREBUILD] - /private/var/folders/bk/2p_w9p8j3ys3f786dc6t94dw0000gp/T/eas-build-local-nodejs/ac25c6d9-c55c-4706-b947-85b48c0f49bb/build/node_modules/@expo/image-utils/build/Image.js [PREBUILD] - /private/var/folders/bk/2p_w9p8j3ys3f786dc6t94dw0000gp/T/eas-build-local-nodejs/ac25c6d9-c55c-4706-b947-85b48c0f49bb/build/node_modules/@expo/image-utils/build/index.js [PREBUILD] - /private/var/folders/bk/2p_w9p8j3ys3f786dc6t94dw0000gp/T/eas-build-local-nodejs/ac25c6d9-c55c-4706-b947-85b48c0f49bb/build/node_modules/expo-splash-screen/node_modules/@expo/prebuild-config/build/plugins/unversioned/expo-splash-screen/withIosSplashAssets.js [PREBUILD] - /private/var/folders/bk/2p_w9p8j3ys3f786dc6t94dw0000gp/T/eas-build-local-nodejs/ac25c6d9-c55c-4706-b947-85b48c0f49bb/build/node_modules/expo-splash-screen/node_modules/@expo/prebuild-config/build/plugins/unversioned/expo-splash-screen/withIosSplashScreen.js [PREBUILD] - /private/var/folders/bk/2p_w9p8j3ys3f786dc6t94dw0000gp/T/eas-build-local-nodejs/ac25c6d9-c55c-4706-b947-85b48c0f49bb/build/node_modules/expo-splash-screen/plugin/build/withSplashScreen.js [PREBUILD] - /private/var/folders/bk/2p_w9p8j3ys3f786dc6t94dw0000gp/T/eas-build-local-nodejs/ac25c6d9-c55c-4706-b947-85b48c0f49bb/build/node_modules/expo-splash-screen/app.plugin.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/node_modules/@expo/config-plugins/build/utils/plugin-resolver.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/node_modules/@expo/config-plugins/build/plugins/withStaticPlugin.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/node_modules/@expo/config-plugins/build/plugins/withPlugins.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/node_modules/@expo/config-plugins/build/index.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/node_modules/@expo/config/build/plugins/withConfigPlugins.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/node_modules/@expo/config/build/Config.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/node_modules/@expo/config/build/index.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/build/getPrebuildConfig.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/prebuild-config/build/index.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/expo-cli/build/commands/eject/configureProjectAsync.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/expo-cli/build/commands/eject/prebuildAppAsync.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/expo-cli/build/commands/eject/prebuildAsync.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/expo-cli/build/commands/eject/prebuild.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/expo-cli/build/commands/index.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/expo-cli/build/exp.js [PREBUILD] - /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/expo-cli/bin/expo.js [PREBUILD] at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15) [PREBUILD] at Function.Module._load (internal/modules/cjs/loader.js:725:27) [PREBUILD] at Module.require (internal/modules/cjs/loader.js:952:19) [PREBUILD] at require (internal/modules/cjs/helpers.js:88:18) [PREBUILD] at Object.<anonymous> (/private/var/folders/bk/2p_w9p8j3ys3f786dc6t94dw0000gp/T/eas-build-local-nodejs/ac25c6d9-c55c-4706-b947-85b48c0f49bb/build/node_modules/@expo/image-utils/src/Image.ts:1:1) [PREBUILD] at Module._compile (internal/modules/cjs/loader.js:1063:30) [PREBUILD] at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10) [PREBUILD] at Module.load (internal/modules/cjs/loader.js:928:32) [PREBUILD] at Function.Module._load (internal/modules/cjs/loader.js:769:14) [PREBUILD] at Module.require (internal/modules/cjs/loader.js:952:19) [PREBUILD] at require (internal/modules/cjs/helpers.js:88:18) [PREBUILD] at Object.<anonymous> (/private/var/folders/bk/2p_w9p8j3ys3f786dc6t94dw0000gp/T/eas-build-local-nodejs/ac25c6d9-c55c-4706-b947-85b48c0f49bb/build/node_modules/@expo/image-utils/src/index.ts:2:1) [PREBUILD] at Module._compile (internal/modules/cjs/loader.js:1063:30) [PREBUILD] at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10) [PREBUILD] at Module.load (internal/modules/cjs/loader.js:928:32) [PREBUILD] at Function.Module._load (internal/modules/cjs/loader.js:769:14) [PREBUILD] Error: bash exited with non-zero code: 1 at ChildProcess.completionListener (/Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/spawn-async/build/spawnAsync.js:43:23) at Object.onceWrapper (events.js:422:26) at ChildProcess.emit (events.js:315:20) at maybeClose (internal/child_process.js:1048:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) … at spawnAsync (/Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/spawn-async/build/spawnAsync.js:8:21) at spawn (/Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/turtle-spawn/dist/index.js:17:47) at LocalExpoCliEjectProvider.runEject (/Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/dist/eject.js:22:42) at /Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/build-tools/dist/builders/ios.js:32:41 at BuildContext.runBuildPhase (/Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/build-tools/dist/context.js:48:34) at Object.iosBuilder (/Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/node_modules/@expo/build-tools/dist/builders/ios.js:28:23) at async buildIosAsync (/Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/dist/ios.js:49:27) at async buildAsync (/Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/dist/build.js:28:32) at async main (/Users/namanh/.npm/_npx/10554/lib/node_modules/eas-cli-local-build-plugin/dist/main.js:16:9) [CLEAN_UP_CREDENTIALS] Destroying keychain - /var/folders/bk/2p_w9p8j3ys3f786dc6t94dw0000gp/T/turtle-v2-ca713dba-6dfe-4e88-98da-f096a763a0a9.keychain [CLEAN_UP_CREDENTIALS] Removing provisioning profile

Build failed bash exited with non-zero code: 1 Error: npx exited with non-zero code: 1

Reproducible demo or steps to reproduce from a blank project

Step 1: eas build --profile internal Step 2: get the above error

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
wkozyra95commented, Mar 28, 2022

@innonguyen eas build will use yarn if you have yarn.lock in the repo

1reaction
KWcDP6hz3commented, Mar 28, 2022

@wkozyra95 For me those changes you mentioned fixed the issue. I was using npm but the prebuild on eas was using yarn (and was complaining about that). This warning is gone now and I get no error for chalk anymore.

Thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

react native - Cannot find module node_modules\chalk\source ...
Please verify that the package.json has a valid "main" entry Error: Cannot find module 'C:\Users\xyz\projects\abc\node_modules\chalk\source' ...
Read more >
解决Error: Cannot find module 'chalk' - 简书
方案一:安装chalk模块或者,删掉node_modules,重新运行方案二:看报错信息发现和Orionos-cli 脚手架相关,重新安装Orionos-cli 脚...
Read more >
Chalk - npm
js used to be the most popular string styling module, but it has serious deficiencies like extending String.prototype which causes all kinds of ......
Read more >
Android Failure for Managed Workflows due to npm
Managed workflow SDK: 44.0.0 Only Android is failing. ... [android.dangerous]: withAndroidDangerousBaseMod: Cannot find module 'chalk'.
Read more >
eas-cli - bytemeta
Could not create task ':app:prepareLintJarForPublish' - It is too late to set ... [ios.dangerous]: withIosDangerousBaseMod: Cannot find module 'chalk'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found