GithubHelp home page GithubHelp logo

Comments (10)

antonybudianto avatar antonybudianto commented on July 19, 2024

Thanks for reporting, looks like it's angular2 typings problem, can you try on gulp tsc, gulp tsc-unit?

from angular-starter.

Pirozek avatar Pirozek commented on July 19, 2024

Hi, thans for quick response!

`C:\xampp\htdocs\angular2-starter>gulp tsc
[09:37:24] Using gulpfile C:\xampp\htdocs\angular2-starter\gulpfile.js
[09:37:24] Starting 'clean-ts-app'...
[09:37:24] Starting 'clean-ts-test'...
[09:37:24] Finished 'clean-ts-app' after 22 ms
[09:37:24] Finished 'clean-ts-test' after 17 ms
[09:37:24] Starting 'clean-ts'...
[09:37:24] Finished 'clean-ts' after 18 us
[09:37:24] Starting 'tsc'...
app\app.component.spec.ts(42,34): error TS2339: Property 'toBeDefined' does not exist on type 'NgMatchers'.

C:\xampp\htdocs\angular2-starter>gulp tsc-unit
[09:38:31] Using gulpfile C:\xampp\htdocs\angular2-starter\gulpfile.js
[09:38:31] Starting 'clean-ts-test'...
[09:38:31] Finished 'clean-ts-test' after 21 ms
[09:38:31] Starting 'tsc-unit'...
app\app.component.spec.ts(42,34): error TS2339: Property 'toBeDefined' does not exist on type 'NgMatchers'.
`

from angular-starter.

antonybudianto avatar antonybudianto commented on July 19, 2024

How about removing expect from imports? that means we will use original matcher

from angular-starter.

Pirozek avatar Pirozek commented on July 19, 2024

Not working -> app\app.component.spec.ts(40,17): error TS2304: Cannot find name 'expect'.

from angular-starter.

antonybudianto avatar antonybudianto commented on July 19, 2024

Can you verify the typings installed correctly? It should be loaded through typings/browser.d.ts, and have jasmine reference

from angular-starter.

antonybudianto avatar antonybudianto commented on July 19, 2024

I think it's OS related issue since it works on mine

from angular-starter.

Pirozek avatar Pirozek commented on July 19, 2024

Hmm... I don't have browser.d.ts in typings directory, I only have tsd.d.ts with /// <reference path="jasmine/jasmine.d.ts" /> inside. Where do I get browser.d.ts? I thought it is generated

from angular-starter.

antonybudianto avatar antonybudianto commented on July 19, 2024

it should be done through post npm install, please remove typings folder and run typings install

from angular-starter.

Pirozek avatar Pirozek commented on July 19, 2024

Ha! Nice! :) It seems to be working now, only karma bitches about PhantomJS 09 03 2016 10:01:07.575:WARN [launcher]: Can not load "PhantomJS", it is not registered! but that Windows specific problem and I will solve it on my own. Thank you very much for your help!

from angular-starter.

antonybudianto avatar antonybudianto commented on July 19, 2024

My pleasure 😃

from angular-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.