-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm start gave Cannot find name 'expect'. errors #159
Comments
Hi Tim, I've just done a fresh install locally and don't see anything - also CI seems clean. Any advice on how I can replicate this? Steve |
Hi Steve This is on Windows 10 with a fresh install. With your original tsconfig.json:
Found the 'fix' from ionic-team/ionic-app-scripts#157 (comment)
Tim
|
I'm unsure why it's trying to transpile anything in the e2e folder for me it only looks in src. A better solution would be adding e2e to the excludes array:
Any idea why you'd see this and I wouldn't? |
Same error here in Windows 10 with the .spec files in general. |
This works:
|
Exclude is definitely the correct option. I'll put it in by default in the project's base tsconfig.json. Must be something around differences between file paths resolving across the OS. |
The fix we went with here caused #174 |
I've reverted to using the types originally suggested. Let me know if this breaks things on windows: 0ae024b |
All good with Windows 10 👍 Did remove existing node_modules folder.
|
Same problem in the latest version with Ionic RC4 |
It doesn't find type definition for jasmine:
|
Hi @frabnt Reverting to typescript 2.0.10 worked for me.
ionic info
npm 4.0.5 hth |
Thanks Tim, I noticed this on appveyor, but I'm still a long way away from being able to debug anything on Windows. Will downgrade as suggested and put a build command into appveyor |
Fixed by adding
to tsconfig.json
hth
Tim
The text was updated successfully, but these errors were encountered: