Skip to content
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

Exception on React Native #259

Closed
lorenc-tomasz opened this issue Dec 7, 2018 · 8 comments
Closed

Exception on React Native #259

lorenc-tomasz opened this issue Dec 7, 2018 · 8 comments

Comments

@lorenc-tomasz
Copy link

undefined is not a function (evaluating 'optionalFlagstypeof Symbol === "function" ? Symbol.iterator : "@@iterator"')
addToken
xregexp.js:760:28

xregexp.js:2000:17
loadModuleImplementation
require.js:320:6
guardedLoadModule
require.js:214:36
metroRequire
require.js:136:24

index.js:8:45
loadModuleImplementation
require.js:320:6
guardedLoadModule
require.js:214:36
metroRequire
require.js:136:24

usernameValidator.js:2
loadModuleImplementation
require.js:320:6
guardedLoadModule
require.js:214:36
metroRequire
require.js:136:24

ProfileHomeScreen.js:24
loadModuleImplementation
require.js:320:6
guardedLoadModule
require.js:214:36
metroRequire
require.js:136:24

HomeStackNavigator.js:8
loadModuleImplementation
require.js:320:6
guardedLoadModule
require.js:214:36
metroRequire
require.js:136:24

App.js:46
loadModuleImplementation
require.js:320:6
guardedLoadModule
require.js:214:36
metroRequire
require.js:136:24

index.android.js:3
loadModuleImplementation
require.js:320:6
guardedLoadModule
require.js:207:45
metroRequire
require.js:136:24
global code

With 3.2.0 everything works ok

@ducaale
Copy link

ducaale commented Dec 29, 2018

version 4.1.1 also works

@josephfrazier
Copy link
Collaborator

@slevithan, it looks like this might be due to the use of Symbol, which also caused problems in #254, and was fixed after version 4.2.0. Should we release version 4.2.1 and see if it helps?

@slevithan
Copy link
Owner

@josephfrazier, sounds good to me.

@josephfrazier
Copy link
Collaborator

Great, I'll put together the PR

josephfrazier added a commit to josephfrazier/xregexp that referenced this issue Dec 30, 2018
Hopefully this will address slevithan#259

Here's the previous release PR, for reference:
slevithan#223

Not exactly sure where all the `package-lock.json` changes came from,
but I'm guessing it's due to a newer `npm` version (I'm on `v6.5.0`).
slevithan pushed a commit that referenced this issue Jan 6, 2019
Hopefully this will address #259

Here's the previous release PR, for reference:
#223

Not exactly sure where all the `package-lock.json` changes came from,
but I'm guessing it's due to a newer `npm` version (I'm on `v6.5.0`).
@lorenc-tomasz
Copy link
Author

lorenc-tomasz commented Jan 7, 2019

4.2.2:

Unable to resolve module @babel/runtime/core-js/get-iterator from /Projects/xyz/node_modules/xregexp/lib/addons/unicode-base.js: Module @babel/runtime/core-js/get-iterator does not exist in the Haste module map

Runtime is installed as dependency :(

@josephfrazier
Copy link
Collaborator

See #262

@slevithan
Copy link
Owner

@lorenc-tomasz can you confirm whether this is resolved in v4.2.4?

@lorenc-tomasz
Copy link
Author

@slevithan Bug resolved in 4.2.4. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants