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

不能运行 #9

Open
xueyaxuan opened this issue Sep 21, 2017 · 0 comments
Open

不能运行 #9

xueyaxuan opened this issue Sep 21, 2017 · 0 comments

Comments

@xueyaxuan
Copy link

在把pages包里面的js文件拷过去之后,又安装了react-native-sqlite-storage 之后运行了好多次一直出现Cannot read property 'open' of undefined问题

image

还有这个提示{
[intellij] [Warning] Couldn't import script at http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false. Debugging won't work: Try reloading the JS from inside the app, or Reconnect the debugger: {"type":"TransformError","message":"SyntaxError D:/React-Native_workspace/MyCalendarDemo/pages/mainAndroid.js: Only one default export allowed per module. (565:0)","snippet":"\u001b[0m \u001b[90m 563 | \u001b[39m }\n \u001b[90m 564 | \u001b[39m})\u001b[33m;\u001b[39m\n\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 565 | \u001b[39m\u001b[36mexport\u001b[39m \u001b[36mdefault\u001b[39m main\u001b[33m;\u001b[39m\n \u001b[90m | \u001b[39m\u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m","lineNumber":565,"column":0,"filename":"D:\React-Native_workspace\MyCalendarDemo\pages\mainAndroid.js","description":"D:/React-Native_workspace/MyCalendarDemo/pages/mainAndroid.js: Only one default export allowed per module. (565:0)","errors":[{"description":"D:/React-Native_workspace/MyCalendarDemo/pages/mainAndroid.js: Only one default export allowed per module. (565:0)","filename":"D:\React-Native_workspace\MyCalendarDemo\pages\mainAndroid.js","lineNumber":565}]}

}

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

1 participant