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

TypeError: null is not an object (evaluating 'Uni.initialize') #1

Open
qqakashi opened this issue Aug 4, 2020 · 8 comments
Open

TypeError: null is not an object (evaluating 'Uni.initialize') #1

qqakashi opened this issue Aug 4, 2020 · 8 comments

Comments

@qqakashi
Copy link

qqakashi commented Aug 4, 2020

集成后打印TypeError: null is not an object (evaluating 'Uni.initialize')

@qqakashi
Copy link
Author

qqakashi commented Aug 4, 2020

并且点击释放wgt没任何反应

@puti94
Copy link
Owner

puti94 commented Aug 4, 2020

可以先把example运行起来,你这应该是插件没有安装,ios执行pod install

@qqakashi
Copy link
Author

qqakashi commented Aug 4, 2020

可以先把example运行起来,你这应该是插件没有安装,ios执行pod install
rn版本是0.62.0 运行的是android 例子我运行不起来会报个@babel/runtime的错误 你能不能新写个例子
我重新新建项目后集成 xml文件我没加后面的代码 运行uni.initialize提示初始化成功 但我释放本地wgt文件又提示false 不知道哪里出了问题

@puti94
Copy link
Owner

puti94 commented Aug 4, 2020

要打开本地wgt文件要assets里面有相应的uni-wgt文件,具体可以看看uni的小程序文档

@qqakashi
Copy link
Author

qqakashi commented Aug 5, 2020

你自己试过这个插件没有

@qqakashi
Copy link
Author

qqakashi commented Aug 5, 2020

初始化项目直接提示
Screenshot_20200805-092341

@puti94
Copy link
Owner

puti94 commented Aug 5, 2020

我能开源出来肯定是自己试过没问题的,example运行下肯定也没问题。react-native 你要完好就需要有一定的原生知识,更何况这种一个跨平台框架应用到另一个跨平台框架上,你要真应用到正式环境上一定会有一堆问题待解决,如果不会原生就放弃这个吧,坑太大

@qqakashi
Copy link
Author

可以升级下sdk吗现在最新sdk支持target29了

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

2 participants