-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
TypeError: Cannot read property 'getItem' of undefined #29084
Comments
|
Quick search pulled up this. Check your dependencies? |
Had the same issue. Just remove:
from and
from Now build new. |
@kwoxer I actually need the @babel/plugin-proposal-class-properties as I'm using the @babel/plugin-proposal-decorators. Is there another solution to this issue? |
@avinashlng1080 : Please try with import FlatList from 'react-native-gesture-handler'. |
any solution? |
This issue is still happening on react-native 0.64.2. Any other suggestions or news about this? |
I had the same issue on react-native 0.64.3.
|
Hello, gentlemen! Add "class properties" plugin in the list (there are all in -- module:metro-react-native-babel-preset but in different order), if you didn't already.
|
Adding |
@diatche 's solution just saved me a bunch of frustration in an Expo 46 / RN 0.69.6 project. Thanks! |
to apply certain plugins / presets only on react-native or any other library, use the "overrides" and "include/exclude" babel configs:
|
thanks its working |
Yea this works if you want to add But in some cases you don't want to add it in the root of the monorepo because you also transpile non |
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days. |
Also worked for me, using ethers 6.1 required private class properties and it broke flatlist. My current babel.config:
|
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days. |
This issue was closed because the author hasn't provided the requested feedback after 7 days. |
It solved with me after downgrading
|
Hi, I was having the same problem, needed to use the decorators for Mobx, adding |
For me this helped: https://stackoverflow.com/a/76994931 Unfortunately, it's only a workaround not a solution as it ivolves modifying node_modules contents. |
Please provide all the information requested. Issues that do not follow this format are likely to stall.
Description
I'm creating a new react-native project and when running it I'm getting the above error. The full error is:
Also, in my cmd I'm getting this error, related to the debugger:
I'm using windows 10. I understand that it might be related to my system because usually people init a new react-native app and it's wokring. But I cannot figure out what's the problem and why it responds like that. If you have a direction on what should I do I'd be glad to try anything, just a few days ago it worked fine and seems like it's out of the blue.
Thanks a lot in advance
React Native version:
0.62.2
Steps To Reproduce
react-native init newProject
react-native run-android
Expected Results
Describe what you expected to happen.
Snack, code example, screenshot, or link to a repository:
Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
You may provide a screenshot of the application if you think it is relevant to your bug report.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve
The text was updated successfully, but these errors were encountered: