-
Notifications
You must be signed in to change notification settings - Fork 3.1k
'npm start' error with protractor #325
Comments
I was oppening a new issue on this, good thing that I didn't. Just updated Node and NPM just in case but the error is still there. |
I am experiencing a similar error on Windows.
|
Exact same problem here. |
instead of |
@nickJones67 That runs, but please explain why. |
@nickJones67 it works, however, the *.ts aren't updating the *.js... |
@abductedMind Not sure. I discovered it on this issue discussion |
I managed to get it running using two terminal windows, one with npm run tsc:w other with npm run lite |
This seems to be related with a
|
@filipesilva it works now. Wonder what's the inner problem with the newer version? |
Not too sure myself but @cnishina is working on it I believe. |
Same problem using Debian 8.6.0 Jessie. $ node -v $ npm -v |
@nickJones67 thanks for your help |
Man this was driving me mad for an hour, especially after seeing |
If anyone is still confused, change the following in package.json
reference: http://stackoverflow.com/questions/34335340/angular2-quickstart-npm-start-is-not-working-correctly |
@daintym0sh thanks changing that
|
Per @filipesilva, rather than modify package.json, use a specific version of selenium-webdriver: npm install @types/selenium-webdriver@2.53.33 |
Can confirm that on Windows the only needed change is changing this line
to
Then an |
@jtdewey can confirm this solution working on Mac too. Thanks! @filipesilva @andresrinivasan |
Going to close this issue for now. |
Just to let people know, a fix is in the works on angular/protractor#3848. |
I'm going to reopen this since more people are opening new issues to report it. |
When angular/protractor#3848 is ready it should fix the webdriver types issues, and the pinning can be reverted. The zone.js problem is being tracked on angular/zone.js#554. Fix #325
When angular/protractor#3848 is ready it should fix the webdriver types issues, and the pinning can be reverted. The zone.js problem is being tracked on angular/zone.js#554. Fix #325
This trick didn't work for me (Ubuntu 14.04 )
I had to use this command to start :
I have npm version 4.1.1 |
Try npm run serve |
When angular/protractor#3848 is ready it should fix the webdriver types issues, and the pinning can be reverted. The zone.js problem is being tracked on angular/zone.js#554. Fix angular/quickstart#325
Trying to run quickstart
npm start
and get the following on Mac Pro Sierra v10.12.1.npm -v // 3.10.9
tsc -v // 2.1.4
I can run
npm lite
and server starts up, but any cli common with tsc (npm tsc, npm tsc:w) gets the errors below. I can run tsc outside the quickstart dir and everything works fine. I checked my node_modules permissions and seems correct. Any suggestions? Thanksnode_modules/protractor/built/browser.d.ts(260,37): error TS2503: Cannot find namespace 'webdriver'.
node_modules/protractor/built/browser.d.ts(267,55): error TS2503: Cannot find namespace 'webdriver'.
node_modules/protractor/built/browser.d.ts(267,78): error TS2503: Cannot find namespace 'webdriver'.
node_modules/protractor/built/browser.d.ts(358,31): error TS2503: Cannot find namespace 'webdriver'.
node_modules/protractor/built/browser.d.ts(369,26): error TS2503: Cannot find namespace 'webdriver'.
node_modules/protractor/built/browser.d.ts(425,36): error TS2503: Cannot find namespace 'webdriver'.
node_modules/protractor/built/ptor.d.ts(13,29): error TS2503: Cannot find namespace 'webdriver'.
The text was updated successfully, but these errors were encountered: