preboot / angularjs-webpack

A complete, yet simple, starter for AngularJS using webpack
MIT License
1.71k stars 658 forks source link

Typescript compiler errors #14

Closed cmelion closed 8 years ago

cmelion commented 8 years ago

I was doing some refactoring of this fantastic seed project and started noticing some errors in the typescript compiler console. I reverted but the errors were still there. Is anyone else seeing this?

Image of Typescript Compile Errors

Foxandxss commented 8 years ago

Wrong repo :P

Did you remove the "ignoreDiagnostic" bits?

cmelion commented 8 years ago

@Foxandxss I did not remove the ignoreDiagnostic bits, should I?

"Wrong repo"? Sorry, is there a right repo :P Actually I'm working in a fork of this repo.

I just started migrating to Angular-2/TS from Angular 1.x and React/ES6 in the last few days, so there are some things I'm still acclimating to.

Everything still runs fine, so It may be this is a Webstorm 11 issue only?

Foxandxss commented 8 years ago

Oh, I think I see your error, you are using webstorm's integrated compiled and you definitely shouldn't. That won't use webpack nor our ts-loader (that has the ignoreDiagnostic bits).

So what you have is not an error per se, it is just that you are using a different compiler that doesn't have all our options. I would disable the webstorm integrated compiler and just use our npm scripts.

Also yes, wrong repo, this is for Angular 1 :P, you are looking at the Angular 2 repo is a different one.

cmelion commented 8 years ago

damn! I'm going blind ... sorry about that. Thanks, for the quick reply.

Solution: Go to the Settings | Languages & Frameworks | TypeScript page - uncheck TypeScript Compiler checkbox.