-
Notifications
You must be signed in to change notification settings - Fork 178
upgrading to 2.0.0-rc.3 from 1.1.1 generate errors #168
Comments
@t246246 thanks for your request. I wanted to note that |
Thank you for your prompt reply. I added the link for plnker. That is not webpack one, so I need to add webpack.config above myself. 2016/6/22 edit I add my other files:
.babelrc
and I modified index.html.
|
HI @s-panferov. I'm getting similar errors related to bad module-resolution with
...and so on. The same I'm using: |
@niieani thanks for your report, is your project open-source? Can I see the source-codes? |
Hi, @s-panferov! Same here for
First import is written as This should work since I got This all worked with |
@s-panferov The simplest way to reproduce the error is to simply:
VSCode and TSC will compile that file without errors, while the loader will complain about missing |
@niieani your case fixed in Everybody please try |
@s-panferov It's mostly fixed, however there's one more case that doesn't work. declare module 'system' {
import * as Aurelia from 'aurelia-framework';
interface System {
import(name: 'aurelia-framework'): Promise<typeof Aurelia>;
}
} this still generates an error:
|
For me |
@niieani thanks, I've fixed your case in @olegstepura I'll try to debug your case soon. |
In v2.0.0-rc.4, errors reduced. Same with 2.0.0-rc.5 and 2.0.0-rc.6. Remaining errors are:
PS. I had added wrong links for angular demo. Current one at my first comment is correct. Sorry. PPS. Using typescript 1.8.0
Using typescript 1.9.0-dev.20160620-1.0 different kind of error happened, I sepatate it to another issue #170 |
@t246246 Your issues might be fixed by This error:
This seems to be related to microsoft/TypeScript#8518, so it seems that you need to use |
@t246246 also please take a note, that this setup
can be replaced with more performant
This will work faster because it will cache result files and will not trigger TS and Babel emit if nothing changed. |
Hi, @s-panferov! I created a test repo for tests https://github.com/olegstepura/awesome-typescript-loader-test
Plus initial compilation is extremely slow. Please try checking it on your side. |
Also I should note that this |
@t246246 your setup fixed on Windows in |
Thank you! I confirmed it works on Windows and MacOS X. |
@olegstepura could you please try |
I tried using
With |
@s-panferov Please also note I'm on Windows. |
Uh oh!
There was an error while loading. Please reload this page.
As I have just update to 2.0.0-rc-3, it begin to generate errors. With 1.1.1 no errors at all.
I tried with typescript 1.8.10 and 1.9.0-dev, both generate same errors.
I use webpack.2.1.0-beta.13. Source is angular hero demo.
@angular/core is 2.0.0-rc2, @angular-router is @3.0.0-alpha.7
fileNames entry in log is OK,
but it somehow failed to exclude modules defined in tsconfig.json.(If I write
files
instead ofexclude,
same error occurs, so there should be other cause.)tsconfig.json
Here is my webpack.config.js:
Sorry if I am missing something.
Best wishes,
The text was updated successfully, but these errors were encountered: