Open jschaf opened 8 years ago
If I remove the noEmit: true
from tsconfig.json
, the example works. Is noEmit
supposed to be set to true
? It looks like it gets loaded with webpack-dev-middleware
.
That's interesting. I think it's because of the new version of TS. Maybe the thing to do is to just remove that line from tsconfig.json
.
UPDATE: Somehow, by cleaning the output js file, the build went through. Take the following as if it was a bad dream.
While noEmit: true
gets rid of the error for the dev server, the build couldn't still go through. The console output follows:
> NODE_ENV=production webpack --config config/webpack.prod.js --progress --display-error-details
10% 0/1 build modulests-loader: Using typescript@1.8.2 and tsconfig.json
3260ms build modules
7ms seal
14ms optimize
10ms hashing
23ms create chunk assets
786ms additional chunk assets
470ms optimize chunk assets
662ms optimize assets
14ms emit
Hash: 8b07afa8903b37de50ac
Version: webpack 1.12.14
Time: 5310ms
Asset Size Chunks Chunk Names
app.js 701 kB 0 [emitted] main
app.js.map 834 kB 0 [emitted] main
+ 177 hidden modules
ERROR in app.js from UglifyJs
Unexpected token: name (App) [./app/components/app.js:20,0]
The error reminds the one with the dev server.
For me also happening
I'm having a ton of trouble trying to get the example to run. I cloned the repository and ran
npm install
andtsd install
. After runningnpm start
, I get the following output:If I browse to localhost:3000, I get index.html but
static/app.js
seems has the same contents as index.html so Chrome fails to parse the the javascript file.Did I miss a step?