你好,我有下一个设置:
Ionic:
ionic (Ionic CLI) : 4.8.0 (/usr/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.8
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 14 other plugins)
System:
Android SDK Tools : 26.1.1 (/home/alejandro/Android/Sdk)
NodeJS : v11.9.0 (/usr/bin/node)
npm : 6.8.0
OS : Linux 4.9
package.json
"dependencies": {
"@angular/animations": "^5.0.0",
"@angular/common": "^5.0.3",
"@angular/compiler": "^5.0.3",
"@angular/compiler-cli": "^5.0.3",
"@angular/core": "^5.0.3",
"@angular/forms": "^5.0.3",
"@angular/http": "^5.0.3",
"@angular/platform-browser": "^5.0.3",
"@angular/platform-browser-dynamic": "^5.0.3",
"@cloudinary/angular-4.x": "^1.1.0",
"@ionic-native/badge": "^4.5.3",
"@ionic-native/camera": "^4.5.2",
"@ionic-native/core": "^4.5.2",
"@ionic-native/document-viewer": "^4.12.2",
"@ionic-native/file": "^4.5.3",
"@ionic-native/file-opener": "^4.12.2",
"@ionic-native/file-transfer": "^4.5.2",
"@ionic-native/in-app-browser": "^4.14.0",
"@ionic-native/market": "^4.16.0",
"@ionic-native/network": "^4.5.2",
"@ionic-native/onesignal": "^4.5.3",
"@ionic-native/splash-screen": "^4.5.2",
"@ionic-native/status-bar": "^4.5.3",
"@ionic/pro": "1.0.19",
"@ionic/storage": "^2.1.3",
"apollo-angular": "^1.0.1",
"apollo-angular-link-http": "^1.0.2-beta.0",
"apollo-cache-inmemory": "^1.1.7",
"apollo-client": "^2.2.3",
"apollo-link": "^1.1.0",
"apollo-link-context": "^1.0.5",
"apollo-upload-client": "^7.0.0-alpha.4",
"cordova-android": "7.1.4",
"cordova-ios": "4.5.4",
"cordova-plugin-badge": "^0.8.8",
"cordova-plugin-camera": "^4.0.3",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-document-viewer": "^0.9.10",
"cordova-plugin-file": "^6.0.1",
"cordova-plugin-file-opener2": "^2.1.4",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-inappbrowser": "^3.0.0",
"cordova-plugin-ionic-webview": "^1.2.1",
"cordova-plugin-market": "^1.2.0",
"cordova-plugin-network-information": "^2.0.1",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"graphql": "0.12.3",
"graphql-tag": "^2.7.3",
"ionic-angular": "3.9.2",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "3.0.0",
"moment": "^2.22.2",
"onesignal-cordova-plugin": "^2.4.6",
"rxjs": "^5.5.6",
"sw-toolbox": "3.6.0",
"update": "^0.7.4",
"webdriver-manager": "^12.1.0",
"zone.js": "^0.8.18"
},
"devDependencies": {
"@angular/cli": "1.4.8",
"@ionic/app-scripts": "3.1.8",
"@types/jasmine": "^2.5.41",
"@types/node": "^8.0.45",
"angular2-template-loader": "^0.6.2",
"connect": "^3.6.5",
"html-loader": "^0.5.1",
"istanbul-instrumenter-loader": "^3.0.0",
"jasmine": "^2.5.3",
"jasmine-spec-reporter": "^4.1.0",
"karma": "^1.5.0",
"karma-chrome-launcher": "^2.0.0",
"karma-coverage-istanbul-reporter": "^1.3.0",
"karma-jasmine": "^1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"karma-mocha-reporter": "^2.2.4",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^2.0.3",
"null-loader": "^0.1.1",
"protractor": "^5.4.2",
"ts-loader": "^3.0.3",
"ts-node": "^3.0.2",
"typescript": "2.4.2"
},
当我尝试使用业力运行npm run test时,出现以下错误:
TS2304: Cannot find name 'describe'.
这是一个示例,但我得到了其他类似的示例,我尝试放置与打字稿版本匹配的@ types / jasmine不同版本,但我无法修复错误。测试运行正常,但我对控制台上的错误感到不满意。