New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not start my project after updating to sdk31, can not read property one of undefined #2834
Comments
same here @shubhamdeol |
@mauriciord not yet, let me know if you find any |
@mauriciord finally able to fix this with : yarn add babel-plugin-module-resolver@latest |
my app successfully started, but my assets ( |
what solution you used? |
@shubhamdeol module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
[
'module-resolver',
{
root: ['.'],
alias: {
components: './src/components',
constants: './src/constants',
features: './src/features',
navigation: './src/navigation',
screens: './src/screens',
services: './src/services',
shared: './src/shared',
state: './src/state',
utils: './src/utils',
assets: './assets',
},
},
],
],
};
}; added but only the |
Was this resolved? I'm running into the same error after updating to sdk 31. |
@Beissner No, it's a problem with metro |
Sorry. I meant the error " Cannot read property '1' of undefined". I think it's related to Babel, I've tried just about everything. Any suggestions? |
@Beissner - does this happen if you remove everything from App.js except a simple component that just renders a single View? if it doesn't error in that case then I'd start from there and slowly add back parts of your app until you can find the specific area that's causing the error, and let us know about it here |
I updated to sdk32 and did the step above with deleting .babelrc and running I am now back in business. |
did you tired this #2834 (comment) |
Updating to expo sdk 31, from sdk 30.
exact error:
PathToProject/node_modules/expo/AppEntry.js: Cannot read property '1' of undefined
Solution I tried*
Tried going back to sdk 30, everything works again.
Opened AppEntry File found below lines, I guess something wrong with keep awake.
if something is wrong with my babel settings, then please let me know, below are settings for bebel.
also tried changing transform-react-jsx-source to @babel/transform-react-jsx-source
The text was updated successfully, but these errors were encountered: