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

windows problem, solved #73

Open
fcgll520 opened this issue Oct 4, 2016 · 3 comments
Open

windows problem, solved #73

fcgll520 opened this issue Oct 4, 2016 · 3 comments

Comments

@fcgll520
Copy link

fcgll520 commented Oct 4, 2016

react-native run-android

question:

bundle: Created ReactPackager
uncaught error Error: SyntaxError: C:/Users/apple/reactNative/node_modules/react-native-viewpager/ViewPager.js: Type annotations must come before default assignments, e.g. instead of age = 25: number use age: number = 25 (211:40)

modify:
_getPage(pageIdx: number, loop = false: boolean) {
to
_getPage(pageIdx: number, loop: boolean = false) {

solved.

maybe because of the nodejs version or something.

@leoliew
Copy link

leoliew commented Nov 16, 2016

same question

@Autumnwater
Copy link

nodejs version
。。。get node.js version v6.9.1

@ScottYang36
Copy link

same issue, my version is v8.9.4

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