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

Cannot find name describe

Open Luca-Marantelli opened this issue 9 years ago • 5 comments

Bug Report or Feature Request (mark with an x)

- [ x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.4.9 node: 8.2.1 os: win32 x64 @angular/animations: 4.3.3 @angular/cdk: 2.0.0-beta.8 @angular/common: 4.3.3 @angular/compiler: 4.3.3 @angular/core: 4.3.3 @angular/forms: 4.3.3 @angular/http: 4.3.3 @angular/material: 2.0.0-beta.8 @angular/platform-browser: 4.3.3 @angular/platform-browser-dynamic: 4.3.3 @angular/platform-server: 4.3.3 @angular/router: 4.3.3 @angular/cli: 1.4.9 @angular/compiler-cli: 4.3.3 @angular/language-service: 4.3.3 typescript: 2.3.4

Repro steps.

Follow https://github.com/angular/angular-cli/wiki/stories-universal-rendering Then execute: npm run build:dynamic && npm run serve:dynamic

The log given by the failure.

ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts
[tsl] ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts(3,1)
      TS2304: Cannot find name 'describe'.

ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts
[tsl] ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts(6,3)
      TS2304: Cannot find name 'beforeEach'.

ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts
[tsl] ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts(10,3)
      TS2304: Cannot find name 'it'.

ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts
[tsl] ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts(12,5)
      TS2304: Cannot find name 'expect'.

package.json:

"dependencies": {
    "@agm/core": "^1.0.0-beta.1",
    "@agm/js-marker-clusterer": "^1.0.0-beta.1",
    "@angular/animations": "^4.0.0",
    "@angular/cdk": "^2.0.0-beta.8",
    "@angular/common": "^4.0.0",
    "@angular/compiler": "^4.0.0",
    "@angular/core": "^4.0.0",
    "@angular/forms": "^4.0.0",
    "@angular/http": "^4.0.0",
    "@angular/material": "^2.0.0-beta.8",
    "@angular/platform-browser": "^4.0.0",
    "@angular/platform-browser-dynamic": "^4.0.0",
    "@angular/platform-server": "^4.3.1",
    "@angular/router": "^4.0.0",
    "@covalent/core": "^1.0.0-beta.5-1",
    "@nguniversal/module-map-ngfactory-loader": "^1.0.0-beta.3",
    "@satispay/web-button-factory": "^1.0.4",
    "@types/angular": "^1.6.28",
    "@types/node": "^6.0.88",
    "braintree-web": "^3.22.2",
    "braintree-web-drop-in": "^1.8.0",
    "core-js": "^2.4.1",
    "enhanced-resolve": "^3.3.0",
    "hammerjs": "^2.0.8",
    "js-marker-clusterer": "^1.0.0",
    "lory.js": "^2.3.3",
    "md5": "^2.2.1",
    "moment": "^2.18.1",
    "ng2-cookies": "^1.0.12",
    "ng2-responsive": "^0.8.4",
    "ng2-scroll-to-el": "^1.0.0",
    "paypal-checkout": "^4.0.133",
    "rxjs": "^5.1.0",
    "sass-loader": "^6.0.6",
    "ts-loader": "^3.1.0",
    "web-animations-js": "^2.2.5",
    "zone.js": "^0.8.4"
  },
  "devDependencies": {
    "@angular/cli": "^1.4.7",
    "@angular/compiler-cli": "^4.0.0",
    "@angular/language-service": "^4.0.0",
    "@types/jasmine": "2.5.45",
    "@types/node": "~6.0.60",
    "codelyzer": "~3.0.1",
    "jasmine-core": "~2.6.2",
    "jasmine-spec-reporter": "~4.1.0",
    "karma": "~1.7.0",
    "karma-chrome-launcher": "~2.1.1",
    "karma-cli": "~1.0.1",
    "karma-coverage-istanbul-reporter": "^1.2.1",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "ngx-swiper-wrapper": "^4.6.0",
    "protractor": "~5.1.2",
    "ts-node": "^3.3.0",
    "tslint": "~5.3.2",
    "typescript": "^2.3.4",
    "webpack": "^3.7.1"
  }

Luca-Marantelli avatar Oct 29 '17 12:10 Luca-Marantelli

@Toxicable do you know what's happening here?

filipesilva avatar Oct 31 '17 16:10 filipesilva

I tried reproducing this but was unable. @Gnorro Could you produce a minimal reproduction that we can investigate with?

Toxicable avatar Oct 31 '17 19:10 Toxicable

Hi Id like but i dont know how I followed the guide and then I got this error. I read that should be a typescript version problem, but I also tried to change version without luck

Luca-Marantelli avatar Nov 01 '17 18:11 Luca-Marantelli

I opened a new issue after upgrading to angular 5 with 1.6 cli and fixed versions:

https://github.com/angular/angular-cli/issues/8909

Luca-Marantelli avatar Dec 16 '17 21:12 Luca-Marantelli

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.