eas-cli: [EAS] Lots of @babel errors on eas build: [RUN_GRADLEW] Cannot resolve the path to "@babel..."
Summary
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
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 17 (1 by maintainers)
@Slapbox - can someone provide a minimal reproducible example? i hate to sound like a broken record but…