s-panferov / awesome-typescript-loader

Awesome TypeScript loader for webpack
Other
2.35k stars 179 forks source link

Option 'noEmitOnError' cannot be specified with option 'isolatedModules'. #155

Open shiptoncraig opened 8 years ago

shiptoncraig commented 8 years ago

I've found that since 0.18 of awesome-typescript-loader, I'm getting the following error when trying to run a webpack build using TypeScript 1.8.10.

Module build failed: Error: Debug Failure. False expression: Output generation failed.

I have a vanilla webpack config:

 module: {
        loaders: [
            {
                test: /\.ts$/,
                loader: 'awesome-typescript-loader',
                exclude: [/\.(spec|e2e)\.ts$/]
            }
        ],
    },

with the following TS compiler options:

 "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "sourceMap": true,
    "noEmitOnError": true,
    "noImplicitAny": true    
  },

Did a little digging and am seeing this error be thrown "Option 'noEmitOnError' cannot be specified with option 'isolatedModules'.". I may be misunderstanding and might be a legitimate misconfiguration on my end, but couldn't see how at first glance!

If it helps, I found it's reproducible using the angular2-webpack-starter project, if you just up the version of awesome-typescript-loader from 0.17 to 0.18 or 0.19 and then build it withnpm run build:dev.

scotmeiste commented 8 years ago

I've run into this issue as well with awesome-typescript-loader version 2.1.1