angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Cannot find namespace Jasmine

Open mangopop opened this issue 10 years ago • 3 comments

OS?

Mac OSX ( El Capitan)

Versions.

angular-cli: 1.0.0-beta.17 node: 6.2.0 os: darwin x64

On fresh project I'm trying to use jasmine, I'm getting Cannot find namespace Jasmine when trying to reference jasmine.spy

I cannot see any typings folder in the folder structure or a typings.json? Not sure how to bring this down again if it failed the first time?

Tried npm run postinstall, typings install. Neither working.

mangopop avatar Oct 17 '16 11:10 mangopop

Fixed this by using

typings install --global dt~jasmine

Not sure if this is how it's meant to work?

mangopop avatar Oct 17 '16 14:10 mangopop

@mangopop we're using @types/jasmine to get typings, it might be your editor that's not yet using typescript 2.0 (needed for @types). You should be able to configure that.

filipesilva avatar Oct 17 '16 22:10 filipesilva

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.