-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
undefined is not an object (evaluating 'regeneratorRuntime.mark') #14838
Comments
+1 |
I am getting this on 0.46 |
Alright seems like I've managed to fix this on RN 0.45.1
Worked for me, also unlinking and linking might help. |
Face same problem when creating new project with Ignite.
@Amurmurmur suggestion didn't help. |
Found the problem what I had (with new project generated with Ignite). The error were pointing in my project to line
After changing it to this started to work:
I'm not yet familiar with the ES6 generator functions and |
Wasn't this fixed here? e7c1cf5 |
So this won't roll out till 0.47? |
Could be, someone just need to confirm it's a fix :D Let me know and I'll
do it. Planning to ship 0.46.1 soon
…On Thu, 6 Jul 2017 at 17:57 Gant Laborde ***@***.***> wrote:
So this won't roll out till 0.47?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#14838 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWcxsfBv16-prjiBfU2Jlkk2fr-ZJVZks5sLQP4gaJpZM4OOyOI>
.
|
Tried to fix with the suggested Saga solution, its surely something to do with saga because when I comment out saga implementation in my configureStore, the error is gone however trying suggested solution doesnt work for me. :/ |
@grabbou @GantMan @ernoaapa
|
@Amurmurmur I am still seeing the issue on 0.45.1 even after downgrading babel. I wonder how much node and npm versions might be affecting which fixes work and which ones don't. |
@kcalmes Make sure you reset react-native packager after you've downgraded babel with:
|
That did the trick, I previously deleted the node_modules dir, but I didn't realize I missed the other cache. Thanks for your help @Amurmurmur! |
@facebook-github-bot close |
@brentvatne tells me to close this issue. If you think it should still be opened let us know why. |
Still experiencing this with 0.46.1 and babelrc on both 2.0.0 and 2.1.0. Tried all the things done here but it doesnt fix it. Why was this closed @brentvatne @grabbou |
@vongohren Double make sure you reset the packager, Im using react-native 0.46.1 and babel at 2.0.0 all good on both platforms Debug/Release builds.
Also make sure you reset your android/ios emulator/simulator, delete both android/ios build folders. |
Loool, this is what I have done all the way, but I did not reset the emulator and delete the build folder. Seemed to help, thanks man. But can anyone answere why this happens? @grabbou @brentvatne Edit: This did solve my android problem, but produces different iOS problems. What are the different clearing options of ios? Clear derivated folders? Pod install again. What else @Amurmurmur ? Im running Cocoapods and swift on iOS |
Downgrade babel-preset-react-native to 2.0.0 work for me too. But why 2.1.0 don't work? |
Downgrading worked for me, but I'd also like to know what the issue actually is and what a real fix is. |
Running a completly new project, that is not dependent on cocoapods or swift, works out of the box. I did not try to add all my dependencies but that could be a test case. |
@vongohren Indeed the fresh project will work for you however once you start using babel features such as export/import you will face the problem with babel-preset-react-native 2.1.0 |
Same issue here, from |
@HelloEdit |
I had the same issue using 2.1.0 and downgraded to 2.0.0 which fixed the issue. Now for some reason it doesn't work anymore with 2.0.0 😕 LE : apparently worked after a restart, maybe something was cached... |
@fengshuo thanks, but already tried and didn't work. |
Same here, also coming from Expo create-react-native-app. |
@fengshuo @webwelten I believe you are going to have to wait and see if this gets updated in SDK 21, or for |
Just to let you know that i solved ejecting from Expo |
I'm still having this issue, even after following all of the solutions presented in this thread, including @Amurmurmur 's solution and resetting my terminal / local server, even resetting my computer. It started happening for me after I moved my project root from my user folder to my documents, but the issue persists even if it's moved back so I'm not sure that's the cause. I can't help but notice my main.jsbundle in xcode is red, which usually indicates it's missing. I'd try to re-add it to my project, but I can't find any resources online that indicate where the main.jsbundle is. Here's my full Xcode log:
Currently running on the latest version of React Native (0.48.3) and the latest babel-preset-react-native (3.0.2). Also to address the registration complaint, my app has been running fine on previous versions of React Native and I haven't changed the registration code in either my index.ios.js or my index.android.js. My index.ios.js and index.android.js:
This should be correct, yeah? So I have no clue why it's suddenly getting this complaint too. Although I suspect it's the result of the first error |
I'm using react-native 0.48.3 and what fixed it for me is the following steps:
{
"presets": ["react-native"]
}
The problem is now gone. |
@SudoPlz How do I create a .babelrc file? |
@arminsal1 Open a terminal, |
@SudoPlz Your solution solved my problem, thank you so much! |
I'm glad, :) |
@SudoPlz, thanks. This did the trick finally. Can you explain also why only after this it starts to work? |
@ernoaapa Thanks |
ps: |
I ran into this error using babel-preset-expo and fixed it by switching to babel-preset-react-native:
in .babelrc:
|
@csuermann Thanks! That worked for me! |
what sdk version were you using @csuermann? this shouldn't be a problem with latest version of expo |
@brentvatne: |
@brentvatne I am running into the same issue with sdkVersion "22.0.0" It seems that the version of babel-preset-react-native that babel-preset-expo depends on is 2.1.0. Per what I've read above, this may be causing the problem (and downgrading to 2.0.0 is a potential solution) Edit: I was able to get around the issue without changing any dependencies, just had to switch up how I write my sagas: Went from
to
|
`export default function * () {}` can't be used or else it crashes React Native. See this [issue comment](facebook/react-native#14838 (comment)).
@SudoPlz
|
Please note that this also error might also happen with old code (react native 0.44 and about as old babel-preset-react-native) if using Node >= 9. A fix is to use any Node <9 version which might be a lot easier than upgrading react native. |
@Pokute I downgraded Node from 9 to 8, and it worked for me! |
Is this a bug report?
Yes
(write your answer here)
Have you read the Bugs section of the Contributing to React Native Guide?
(Write your answer here.)
Environment
react-native -v
: 0.45.1node -v
: 8.1.3npm -v
: 5.0.4yarn --version
(if you use Yarn): 0.27.5Then, specify:
Steps to Reproduce
(Write your steps here:)
Expected Behavior
Should work as it did with RN v0.44.0 or RN 0.45.0
(Write what you thought would happen.)
Actual Behavior
(Write what happened. Add screenshots!)
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: