此时我要做的就是让项目运行。
我跑 tns run android
应用程序会生成,但是在启动应用程序时会引发错误
ReferenceError:未定义HTMLElement
因此,当我尝试引入新的nativescript主题核心(2.2.0)时,一切就开始了。我遵循了他们在多个地方发布的指南。一切看起来都很好。然后我跑tns run android了,第一次得到了HTMLElement未定义错误。
然后,我决定再次开始,从一个干净的项目开始。请按照此处的步骤操作:https://nativescript-vue.org/en/docs/getting-started/quick-start/
而且当我运行时,即使我根本没有修改模板,tns run android我仍然会得到相同的HTMLElement未定义错误。
我不知道这是一个错误还是我做错了什么
tns-版本6.1.2
节点-v 12.10.0
npm -v 6.10.3
所以无论现在我做什么我都会收到此错误...
就像我说的那样,代码明智的是,使用此模板存储库的干净提示获取此错误:https : //github.com/nativescript-vue/vue-cli-template
这是堆栈。
User-MacBook-Pro:hello-world user$ tns run android
Searching for devices...
Preparing project...
Bundling application for entryPath ./main...
File change detected. Starting incremental webpack compilation...
webpack is watching the files…
[BABEL] Note: The code generator has deoptimised the …Run Code Online (Sandbox Code Playgroud)