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

iOS模拟器运行失败 #20

Open
0victoria0 opened this issue Sep 1, 2016 · 10 comments
Open

iOS模拟器运行失败 #20

0victoria0 opened this issue Sep 1, 2016 · 10 comments

Comments

@0victoria0
Copy link

simulator screen shot 2016 9 1 3 30 23

[tid:main] SyntaxError /Users/victoria/Documents/React-Native_Resource/Library/react-native-nba-app-master/app/containers/App.js: Only one default export allowed per module.

@0victoria0 0victoria0 reopened this Sep 1, 2016
@wwayne
Copy link
Owner

wwayne commented Sep 1, 2016

Looks something has updated, I don't remember why I exported two default in App.js....but it looks unreasonable, will update the project later

@0victoria0
Copy link
Author

Thanks.

@RPallas92
Copy link

+1

@JonathanFu
Copy link

JonathanFu commented Oct 4, 2016

Can not use more than one export default in a file.
So removing the first default in the file below fixed this issue.

app/containers/App.js
export default class App => export class App

svlapin added a commit to svlapin/react-native-nba-app that referenced this issue Oct 22, 2016
fixes wwayne#20: multiple default exports in App.js
@xuech
Copy link

xuech commented Oct 31, 2016

+1

1 similar comment
@ghost
Copy link

ghost commented Mar 17, 2017

+1

@evernoteHW
Copy link

evernoteHW commented Apr 26, 2017

change 'export default class App extends Component ' to ' class App extends Component'

@jiangJade
Copy link

iOS npm start 报错 grep 不是内部或外部命令

@memory125
Copy link

我的错误如下:
image

@xuech
Copy link

xuech commented May 29, 2019 via email

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

Successfully merging a pull request may close this issue.

8 participants