webpack - typescript emit no output
While working my code, bump into this error and webpack was complaining typescript emit no error
And i found that there's a setting in my tsconfig.json that says this -> noEmit: true.
{
"compilerOptions": {
"outDir": "./dist/",
"noImplicitAny": true,
"target": "ESNext",
"module": "ESNext",
"noEmit": true,
"esModuleInterop": true,
"moduleResolution": "node",
"allowJs": true,
"allowSyntheticDefaultImports": true,
},
"exclude": ["node_modules"],
"include": ["src/**/*"],
}
After removing that, webpack was able to work well.
Comments