Hello to all.
I am trying to build my app through eas build --local
but I am getting the following errors related to react-native-image-filter-kit package. Errors occur in the createBundleReleaseJsAndAssets task:
[RUN_GRADLEW] > Task :app:createBundleReleaseJsAndAssets
[RUN_GRADLEW] * /tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/react-native-image-filter-kit/dist/index.js(.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.mjs|.native.mjs|.mjs|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.cjs|.native.cjs|.cjs|.android.scss|.native.scss|.scss|.android.sass|.native.sass|.sass|.android.css|.native.css|.css)
[RUN_GRADLEW] * /tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/react-native-image-filter-kit/dist/index.js/index(.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.mjs|.native.mjs|.mjs|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.cjs|.native.cjs|.cjs|.android.scss|.native.scss|.scss|.android.sass|.native.sass|.sass|.android.css|.native.css|.css)
[RUN_GRADLEW] Error: While trying to resolve module `react-native-image-filter-kit` from file `/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/comps/image-filters/filters/index.ts`, the package `/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/react-native-image-filter-kit/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/react-native-image-filter-kit/dist/index.js`. Indeed, none of these files exist:
[RUN_GRADLEW] * /tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/react-native-image-filter-kit/dist/index.js(.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.mjs|.native.mjs|.mjs|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.cjs|.native.cjs|.cjs|.android.scss|.native.scss|.scss|.android.sass|.native.sass|.sass|.android.css|.native.css|.css)
[RUN_GRADLEW] * /tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/react-native-image-filter-kit/dist/index.js/index(.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.mjs|.native.mjs|.mjs|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.cjs|.native.cjs|.cjs|.android.scss|.native.scss|.scss|.android.sass|.native.sass|.sass|.android.css|.native.css|.css)
[RUN_GRADLEW] at DependencyGraph.resolveDependency (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/node-haste/DependencyGraph.js:243:17)
[RUN_GRADLEW] at /tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/lib/transformHelpers.js:156:21
[RUN_GRADLEW] at resolveDependencies (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:42:25)
[RUN_GRADLEW] at visit (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:83:30)
[RUN_GRADLEW] at async Promise.all (index 17)
[RUN_GRADLEW] at async visit (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)
[RUN_GRADLEW] at async Promise.all (index 24)
[RUN_GRADLEW] at async visit (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)
[RUN_GRADLEW] at async Promise.all (index 29)
[RUN_GRADLEW] at async visit (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)
[RUN_GRADLEW] at async Promise.all (index 3)
[RUN_GRADLEW] at async visit (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)
[RUN_GRADLEW] at async Promise.all (index 2)
[RUN_GRADLEW] at async visit (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)
[RUN_GRADLEW] at async Promise.all (index 0)
[RUN_GRADLEW] at async buildSubgraph (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:103:3)
[RUN_GRADLEW] at async Graph._buildDelta (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/DeltaBundler/Graph.js:157:22)
[RUN_GRADLEW] at async Graph.initialTraverseDependencies (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/DeltaBundler/Graph.js:140:19)
[RUN_GRADLEW] at async DeltaCalculator._getChangedDependencies (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/DeltaBundler/DeltaCalculator.js:151:25)
[RUN_GRADLEW] at async DeltaCalculator.getDelta (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/DeltaBundler/DeltaCalculator.js:68:16)
[RUN_GRADLEW] at async DeltaBundler.buildGraph (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/DeltaBundler.js:33:5)
[RUN_GRADLEW] at async IncrementalBundler.buildGraphForEntries (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/IncrementalBundler.js:54:19)
[RUN_GRADLEW] at async IncrementalBundler.buildGraph (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/IncrementalBundler.js:134:19)
[RUN_GRADLEW] at async Server.build (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/metro/src/Server.js:92:32)
[RUN_GRADLEW] at async exportEmbedBundleAsync (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/@expo/cli/build/src/export/embed/exportEmbedAsync.js:134:16)
[RUN_GRADLEW] at async exportEmbedBundleAndAssetsAsync (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/@expo/cli/build/src/export/embed/exportEmbedAsync.js:122:24)
[RUN_GRADLEW] at async exportEmbedAsync (/tmp/root/eas-build-local-nodejs/46b9bf0a-6139-4396-a43d-61e69ae7aca8/build/node_modules/@expo/cli/build/src/export/embed/exportEmbedAsync.js:62:34)
[RUN_GRADLEW] > Task :app:createBundleReleaseJsAndAssets FAILED
[RUN_GRADLEW] FAILURE: Build failed with an exception.
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] Execution failed for task ':app:createBundleReleaseJsAndAssets'.
[RUN_GRADLEW] > Process 'command 'node'' finished with non-zero exit value 1
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or --debug option to get more log output.
[RUN_GRADLEW] > Run with --scan to get full insights.
[RUN_GRADLEW] > Get more help at https://help.gradle.org.
[RUN_GRADLEW] BUILD FAILED in 19m 26s
[RUN_GRADLEW] Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
[RUN_GRADLEW] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
[RUN_GRADLEW] For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
[RUN_GRADLEW] 1282 actionable tasks: 1282 executed
[RUN_GRADLEW] Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
Build failed
Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
npx exited with non-zero code: 1
Error: build command failed.
The react-native-image-filter-kit repository has not been updated for more than three years and uses RenderScript, which I added by adding
buildFeatures {
renderScript true
}
to the Android section of the build.gradle file, I solved the problem of RenderScript not being supported.