Nativescript tns模块

Nativescript tns模块,nativescript,Nativescript,System.err: System.err:调用模块函数时出错 System.err: System.err:TypeError:application_1.run不是函数 System.err:文件:file:///data/data/org.nativescript.HelloWorld/files/app/tns_modules/nativescript-angular/platform-common.js, 行:158,列:22 当我在构建nativescript应用程序时,我遇到了上

System.err: System.err:调用模块函数时出错 System.err: System.err:TypeError:application_1.run不是函数 System.err:文件:file:///data/data/org.nativescript.HelloWorld/files/app/tns_modules/nativescript-angular/platform-common.js, 行:158,列:22


当我在构建nativescript应用程序时,我遇到了上述错误。有人能帮我解决这个问题吗?

nativescript 4.0.0引入了
run
方法,因此请确保您使用的是
tns core-modules@4.0.0
或更高版本。此外,请使用最新的
tns-android
tns-ios
获取完整信息与最新模块的兼容性。

您能提供正在中断的部分代码以及运行构建所使用的命令吗?这不是因为代码。谢谢。实际上,当我们的节点和其他tns模块出现问题时,这些类型的错误就会出现。因此,我取消安装了node、npm和nativescript,并再次安装了最新版本。现在,一切都已恢复正常我很好。