将NativeScript应用程序从3升级到7,有什么建议吗?

将NativeScript应用程序从3升级到7,有什么建议吗?,nativescript,angular2-nativescript,nativescript-angular,nativescript-plugin,angular-upgrade,Nativescript,Angular2 Nativescript,Nativescript Angular,Nativescript Plugin,Angular Upgrade,我在2015年左右开发了一款应用程序,急需升级。我试着按照升级说明进行操作,在努力让编译器正常工作之后,我现在遇到了一大堆错误,似乎无法加载应用程序 我正在联系更广泛的社区,看看是否有人做过类似的事情,或者是否有额外的指导方针来升级2015年使用Angular构建的旧NativeScript应用程序 欢迎提供任何建议:-) 这是最新的日志输出: File change detected. Starting incremental webpack compilation...

我在2015年左右开发了一款应用程序,急需升级。我试着按照升级说明进行操作,在努力让编译器正常工作之后,我现在遇到了一大堆错误,似乎无法加载应用程序

我正在联系更广泛的社区,看看是否有人做过类似的事情,或者是否有额外的指导方针来升级2015年使用Angular构建的旧NativeScript应用程序

欢迎提供任何建议:-)

这是最新的日志输出:

File change detected. Starting incremental webpack compilation... Hash: 930f5656308d0b87060d Version: webpack 4.27.1 Time: 7955ms Built at: 11/12/2020 11:12:59 AM Asset Size Chunks Chunk Names app/images/home_background.png 256 KiB [emitted] app/images/incident_map_placeholder.png 242 KiB [emitted] app/images/placeholder_image.png 7.62 KiB [emitted] bundle.js 157 KiB bundle [emitted] bundle package.json 112 bytes [emitted] runtime.js 71.4 KiB runtime [emitted] runtime tns-java-classes.js 0 bytes [emitted] vendor.js 5.89 MiB vendor [emitted] vendor Entrypoint bundle = runtime.js vendor.js bundle.js [./main.ts] 12.9 KiB {bundle} [built] + 368 hidden modules WARNING in Lazy routes discovery is not enabled. Because there is neither an entryModule nor a statically analyzable bootstrap code in the main file. Webpack compilation complete. Watching for file changes. Webpack build done! ERROR in src/main.ts(226,3): error TS2304: Cannot find name 'firebase'. src/main.ts(287,20): error TS2304: Cannot find name 'iosUuidModule'. Updating runtime package.json with configuration values... Project successfully prepared (android) Building project... Gradle build... + setting applicationId + applying user-defined configuration from C:\pathtoproject\nativescript\xxx\App_Resources\Android\app.gradle + using android X library androidx.legacy:legacy-support-v4:1.0.0 + adding nativescript runtime package dependency: nativescript-optimized-with-inspector + adding aar plugin dependency: C:\pathtoproject\nativescript\xxx\node_modules\nativescript-loading-indicator\platforms\android\nativescript_loading_indicator.aar + adding aar plugin dependency: C:\pathtoproject\nativescript\xxx\node_modules\@nativescript\core\node_modules\tns-core-modules-widgets\platforms\android\widgets-release.aar Project successfully built. The build result is located at: C:\pathtoproject\nativescript\xxx\platforms\android\app\build\outputs\apk\debug\app-debug.apk Installing on device emulator-5554... Successfully installed on device with identifier 'emulator-5554'. Restarting application on device emulator-5554... Successfully synced application au.com.xxx.app on device emulator-5554. JS: HMR: Hot Module Replacement Enabled. Waiting for signal. System.err: An uncaught Exception occurred on "main" thread. System.err: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Error calling module function System.err: TypeError: application.start is not a function System.err: File: (file:///data/data/au.com.xxx.app/files/app/bundle.js:658:12) System.err: System.err: StackTrace: System.err: (file:///data/data/au.com.xxx.app/files/app/bundle.js:658:13) System.err: at ./main.ts(file:///data/data/au.com.xxx.app/files/app/bundle.js:664:30) System.err: at __webpack_require__(file: src\webpack\bootstrap:750:0) System.err: at checkDeferredModules(file: src\webpack\bootstrap:43:0) System.err: at webpackJsonpCallback(file: src\webpack\bootstrap:30:0) System.err: at (file:///data/data/au.com.xxx.app/files/app/bundle.js:2:57) System.err: at require(:1:266) System.err: System.err: System.err: TypeError: application.start is not a function System.err: System.err: StackTrace: System.err: java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Error calling module function System.err: TypeError: application.start is not a function System.err: File: (file:///data/data/au.com.xxx.app/files/app/bundle.js:658:12) System.err: System.err: StackTrace: System.err: (file:///data/data/au.com.xxx.app/files/app/bundle.js:658:13) System.err: at ./main.ts(file:///data/data/au.com.xxx.app/files/app/bundle.js:664:30) System.err: at __webpack_require__(file: src\webpack\bootstrap:750:0) System.err: at checkDeferredModules(file: src\webpack\bootstrap:43:0) System.err: at webpackJsonpCallback(file: src\webpack\bootstrap:30:0) System.err: at (file:///data/data/au.com.xxx.app/files/app/bundle.js:2:57) System.err: at require(:1:266) System.err: System.err: System.err: TypeError: application.start is not a function System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6465) System.err: at android.app.ActivityThread.access$1300(ActivityThread.java:219) System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859) System.err: at android.os.Handler.dispatchMessage(Handler.java:107) System.err: at android.os.Looper.loop(Looper.java:214) System.err: at android.app.ActivityThread.main(ActivityThread.java:7356) System.err: at java.lang.reflect.Method.invoke(Native Method) System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) System.err: Caused by: com.tns.NativeScriptException: Error calling module function System.err: TypeError: application.start is not a function System.err: File: (file:///data/data/au.com.xxx.app/files/app/bundle.js:658:12) System.err: System.err: StackTrace: System.err: (file:///data/data/au.com.xxx.app/files/app/bundle.js:658:13) System.err: at ./main.ts(file:///data/data/au.com.xxx.app/files/app/bundle.js:664:30) System.err: at __webpack_require__(file: src\webpack\bootstrap:750:0) System.err: at checkDeferredModules(file: src\webpack\bootstrap:43:0) System.err: at webpackJsonpCallback(file: src\webpack\bootstrap:30:0) System.err: at (file:///data/data/au.com.xxx.app/files/app/bundle.js:2:57) System.err: at require(:1:266) System.err: System.err: System.err: TypeError: application.start is not a function System.err: at com.tns.Runtime.runModule(Native Method) System.err: at com.tns.Runtime.runModule(Runtime.java:674) System.err: at com.tns.Runtime.run(Runtime.java:666) System.err: at com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:21) System.err: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1182) System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6460) System.err: ... 8 more 检测到文件更改。正在启动增量网页包编译。。。 散列:930F56308D0B87060D 版本:网页4.27.1 时间:7955毫秒 建造时间:2020年11月12日上午11:12:59 资产大小块块名称 app/images/home_background.png 256千磅[已发出] app/images/incident\u map\u placeholder.png 242 KiB[已发出] app/images/placeholder_image.png 7.62千磅[已发出] bundle.js 157 KiB bundle[已发出]bundle package.json 112字节[已发出] runtime.js 71.4 KiB运行时[emissed]运行时 tns-java-classes.js 0字节[已发出] vendor.js 5.89 MiB vendor[已发出]vendor Entrypoint bundle=runtime.js vendor.js bundle.js [./main.ts]12.9kib{bundle}[已建] +368个隐藏模块 未启用惰性路由发现中的警告。因为主文件中既没有entryModule,也没有静态分析的引导代码。 网页编辑完成。监视文件更改。 网页包构建完成! src/main.ts(226,3)中出错:错误TS2304:找不到名称“firebase”。 src/main.ts(287,20):错误TS2304:找不到名称“iosUuidModule”。 正在使用配置值更新runtime package.json。。。 项目已成功准备(android) 建筑工程。。。 格雷德尔建筑。。。 +设置应用程序ID +从C:\PathTopProject\nativescript\xxx\App\U Resources\Android\App.gradle应用用户定义的配置 +使用androidx库androidx.legacy:legacy-support-v4:1.0.0 +添加nativescript运行时包依赖项:使用inspector优化的nativescript +添加aar插件依赖项:C:\PathTopProject\nativescript\xxx\node\u modules\nativescript loading indicator\Platform\android\nativescript\u loading\u indicator.aar +添加aar插件依赖项:C:\PathTopProject\nativescript\xxx\node\U modules\@nativescript\core\node\U modules\tns core modules widgets\Platform\android\widgets-release.aar 项目成功建成。 生成结果位于:C:\pathtoproject\nativescript\xxx\platforms\android\app\build\outputs\apk\debug\app-debug.apk 正在设备emulator-5554上安装。。。 已成功安装在标识符为“emulator-5554”的设备上。 正在设备emulator-5554上重新启动应用程序。。。 已在设备emulator-5554上成功同步应用程序au.com.xxx.app。 JS:HMR:Hot模块替换已启用。等待信号。 System.err:在“主”线程上发生未捕获的异常。 System.err:无法创建应用程序com.tns.nativeScript应用程序:com.tns.nativeScript异常:调用模块函数时出错 System.err:TypeError:application.start不是函数 System.err:文件:(file:///data/data/au.com.xxx.app/files/app/bundle.js:658:12) System.err: System.err:StackTrace: System.err:(file:///data/data/au.com.xxx.app/files/app/bundle.js:658:13) System.err:at./main.ts(file:///data/data/au.com.xxx.app/files/app/bundle.js:664:30) System.err:at\uu webpack\u require\uuu(文件:src\webpack\bootstrap:750:0) System.err:at checkDeferredModules(文件:src\webpack\bootstrap:43:0) System.err:at webpackJsonpCallback(文件:src\webpack\bootstrap:30:0) System.err:at(file:///data/data/au.com.xxx.app/files/app/bundle.js:2:57) System.err:at require(:1:266) System.err: System.err: System.err:TypeError:application.start不是函数 System.err: System.err:StackTrace: System.err:java.lang.RuntimeException:无法创建应用程序com.tns.nativeScript应用程序:com.tns.nativeScript异常:调用模块函数时出错 System.err:TypeError:application.start不是函数 System.err:文件:(file:///data/data/au.com.xxx.app/files/app/bundle.js:658:12) System.err: System.err:StackTrace: System.err:(file:///data/data/au.com.xxx.app/files/app/bundle.js:658:13) System.err:at./main.ts(file:///data/data/au.com.xxx.app/files/app/bundle.js:664:30) System.err:at\uu webpack\u require\uuu(文件:src\webpack\bootstrap:750:0) System.err:at checkDeferredModules(文件:src\webpack\bootstrap:43:0) System.err:at webpackJsonpCallback(文件:src\webpack\bootstrap:30:0) System.err:at(文件:/
System.err: An uncaught Exception occurred on "main" thread.
System.err: Unable to create application com.tns.NativeScriptApplication:com.tns.NativeScriptException: Error calling module function
System.err: TypeError: application.start is not a function