我有一个现有的Angular Web项目,为了拥有同等的本机移动应用程序,我尝试通过遵循this文章来添加Nativescript;但是,它失败并显示以下错误:
Project settings:
{
"root": "",
"sourceRoot": "src",
"mainName": "main",
"mainPath": "src/main.ts",
"prefix": "app",
"tsConfig": "src/tsconfig.app.json",
"entryModuleClassName": "MyAppModule",
"entryModuleImportPath": "./app/app.module",
"entryModuleName": "MyApp",
"entryModulePath": "src/app/app.module.ts",
"entryComponentClassName": "AppComponent",
"entryComponentImportPath": "./app.component",
"entryComponentName": "App",
"entryComponentPath": "src/app/app.component.ts",
"indexAppRootTag": "app-root"
}
Adding @nativescript/schematics to angular.json
Adding {N} files
Adding App_Resources
Adding NativeScript specific exclusions to .gitignore
Adding NativeScript run scripts to package.json
Adding NativeScript Project ID to package.json
Modifying web tsconfig
Modifying tslint.json
Adding Sample Shared Component
Specified module does not exist