[EAS] Lots of @babel errors on eas build: [RUN_GRADLEW] Cannot resolve the path to "@babel..."
See original GitHub issueSummary
On eas build --clear-cache --profile development --platform android --local
I am having the error below. They aren’t stopping my build, but as they are warns they surely aren’t good.
My devDeps
"devDependencies": {
"@babel/core": "^7.12.9",
"@types/lodash": "^4.14.178",
"@types/react": "~17.0.21",
"@types/react-native": "~0.64.12",
"@types/react-router-native": "^5.1.2",
"@typescript-eslint/eslint-plugin": "5.8.0",
"@typescript-eslint/parser": "5.8.0",
"babel": "^6.23.0",
"babel-core": "^6.26.3",
"babel-loader": "^8.2.3",
"babel-plugin-module-resolver": "4.1.0",
"eslint": "8.5.0",
"eslint-config-gev": "latest",
"eslint-plugin-react": "7.27.1",
"eslint-plugin-react-hooks": "next",
"eslint-plugin-react-native": "4.0.0",
"typescript": "~4.5.4"
},
(yesterday I installed some of those babel packages due to another error that was being thrown)
My babel.config.js
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
[
'module-resolver',
{
root: ['./src'],
alias: {
shared: '../shared'
},
},
],
'react-native-reanimated/plugin',
],
};
};
(are those needed?)
Environment
Expo CLI 5.0.1 environment info:
System:
OS: Linux 5.13 Ubuntu 21.10 21.10 (Impish Indri)
Shell: 5.8 - /usr/bin/zsh
Binaries:
Node: 16.13.0 - ~/n/bin/node
Yarn: 3.1.0 - ~/n/bin/yarn
npm: 8.1.0 - ~/n/bin/npm
SDKs:
Android SDK:
API Levels: 23, 28, 29, 30
Build Tools: 29.0.2, 30.0.3
System Images: android-28 | Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7042882
npmGlobalPackages:
eas-cli: 0.42.4
expo-cli: 5.0.1
Expo Workflow: managed
Please specify your device/emulator/simulator platform, model and version
Android, error on build
Error output
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "@babel/plugin-proposal-export-default-from" package.
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "@babel/plugin-syntax-export-default-from" package.
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "@babel/plugin-syntax-flow" package.
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "@babel/plugin-transform-flow-strip-types" package.
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "@babel/plugin-transform-react-display-name" package.
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "@babel/plugin-transform-react-jsx-self" package.
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "@babel/plugin-transform-react-jsx-source" package.
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "@babel/plugin-transform-runtime" package.
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "@babel/plugin-transform-typescript" package.
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "@babel/plugin-transform-flow-strip-types" package.
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "@babel/register" package.
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "babel-preset-fbjs" package.
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "babel-preset-fbjs" package.
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "@babel/preset-flow" package.
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "@babel/preset-typescript" package.
[RUN_GRADLEW] ⚠️ Cannot resolve the path to "@babel/register" package.
[RUN_GRADLEW] (node:159594) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /tmp/hb/eas-build-local-nodejs/6776ae47-bdc4-43c7-b483-062a65e5efd6/build/app/node_modules/tslib/package.json.
[RUN_GRADLEW] Update this package.json to use a subpath pattern like "./*".
[RUN_GRADLEW] (Use `node --trace-deprecation ...` to show where the warning was created)
Reproducible demo or steps to reproduce from a blank project
Can add member to app private repo if needed
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:17 (1 by maintainers)
Top Results From Across the Web
EAS build fails for Android: Execution failed for task ':app ...
Hello dear Expo Team, I am running into an issue after moving from expo build to eas builds. On iOS I was able...
Read more >Expo EAS build fails on Android: run gradlew - Stack Overflow
EAS Build doesn't provide a direct way to change the Gradle version but it provides presets for building infrastructure images.
Read more >configure project :react-native-reanimated aar for ... - You.com
Cannot resolve the path to "fsevents" package. FAILURE: Build completed with 2 failures. Try: Run with --stacktrace option to get the stack trace....
Read more >How to Build and Distribute Any React Native App With New ...
Unlike the classic Expo build service ( expo build:[android|ios] ), EAS Build supports building React Native projects with custom native code.
Read more >@expo/eas-json - npm
Dependencies (11). @babel/code-frame · @expo/eas-build-job · chalk · env-string · fs-extra · golden-fleece · joi · log-symbols · semver ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Slapbox - can someone provide a minimal reproducible example? i hate to sound like a broken record but…
This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.