添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

the most probable cause for this problem could be that the package is not installed properly.

try to run this in your npm:

npm install --save-dev @types/jasmine

and then on the top of your .spec.ts file

import 'jasmine';
                                

Related Query

  • error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later
  • error TS2304: Cannot find name 'Observable' Angularjs 2
  • Typescript Error Cannot find name 'google' in ionic2 when using googlemaps javascript API
  • error TS2304: Cannot find name 'InputEvent'
  • error TS7052: Element implicitly has an 'any' type because type 'AbstractControl' has no index signature. Did you mean to call 'get'?
  • Angular 2. Error in Chrome: Cannot find control with unspecified name attribute
  • Cannot extend an interface 'http.IncomingMessage'. Did you mean 'implements'?
  • ERROR in node_modules/@types/node/globals.global.d.ts(1,44): error TS2304: Cannot find name 'globalThis'
  • error TS2304: Cannot find name 'ga'
  • error TS2348: Value of type 'typeof ObjectID' is not callable. Did you mean to include 'new'?
  • Cannot Find name error coming in angular2
  • Cannot find name 'exports' error in typescript
  • error TS2304: Cannot find name 'RTCPeerConnection'
  • Error TS2304: Cannot find name 'X' in the app.components.ts and main.ts file of angular 4 project
  • Typings angular cannot find name error
  • e2e tsconfig types not found: error TS2304: Cannot find name 'browser'
  • How to resolve Error TS2304: Cannot find name 'unknown' in a Angular/dotnet project build using the Okta SDK for angular
  • error with angular ag-grid: "could not find component class yyy, did you forget to configure this component"
  • Typescript Error Cannot find name 'require'. IONIC 3
  • ERROR in node_modules/@ngrx/store/src/models.d.ts(58,58): error TS2304: Cannot find name 'unknown'
  • ERROR in node_modules/@auth0/angular-jwt/lib/jwtoptions.token.d.ts(2,50): error TS2304: Cannot find name 'unknown'
  • MEAN - Cannot find name 'Map' (when compiling server)
  • Getting Cannot find name 'HEROES' error in Angular tutorial
  • Typescript Error Cannot find name 'Observable' in @ionic-native/geolocation
  • Error TS2304: Cannot find name 'ImageCapture' and already installed @types/w3c-image-capture
  • Unable to use BigInt in typescript version 3.4.5. Error TS2304: Cannot find name 'BigInt'
  • Cannot figure out TypeScript error TS2304: Cannot find name
  • How to fix error Cannot find name 'object' in angular 2 cli ckeditor
  • ng2-select generates error cannot find name SelectItem
  • Cannot find name 'Promise' error when i use 'npm start' command
  • More Query from same tag

  • radio inputs not working correctly in angular 7
  • How can I use 'this' jquery selector with angular 2
  • Angular RouterLink queryParamsHandling for optional params
  • Mousevent method not firing
  • What is causing my animation to fail on plays after the first?
  • upgrade angular from version 2 to 4.0.0 - not latest
  • postMessage object from service worker to Angular component
  • Materializecss 1.0.0 + Angular
  • Can't get header Angular 6
  • Angular 7 service worker caching audio file causes range header issues on safari
  • How to test that no element should be found in protractor
  • Error when setting base test providers into several unit tests
  • Nginx for Angular not hitting the back-end api
  • Angular build process with multiple projects and libraries
  • Angular Multi Provider dependency order
  • PrimeNG Panelmenu active state for menu items and submenu items?
  • Angular Universal (SSR) and router animation first load / trigger
  • Angular5 Universal lazy loading on firebase hosting and seo
  • FormData is showing empty while appending the value in Angular 2
  • Ionic 3. No provider for NavController
  • Saving checkbox selected when page is reloaded or visited later in Angular
  • Angular lightbox: Can't bind to 'data-lightbox' since it isn't a known property of 'a'
  • Angular EventEmitter vs. Communication via Service
  • Angular 7 SSR - problems with NgZone
  • Angular Material: A required mat-input field does not show error when the parent form is submitted
  • Why is it must to import SharedModule to Root Module?
  • How can I check if Mobx store is empty in Angular?
  • How do I create an ordered list using angular?
  • Is there any pitfall return subject.asObservable() right after subject.next?
  • How to get and read an object literal from js file into Angular ts file
  •