- Notifications
You must be signed in to change notification settings - Fork 977
Open
Description
I got this error from Webpack:
Seemed to be resolved by switching to ts-loader and updating which version of Webpack the project is using to 4.12.0:
webpack.config.js:
module.exports = { entry: './src/app.ts', output: { filename: 'app.js', path: __dirname + '/dist/', }, devServer: { port: 8000, }, resolve: { extensions: ['.ts', '.js'], }, module: { rules: [ { test: /\.ts$/, use: 'ts-loader', }, ], }, }; package.json:
{ "name": "store", "version": "0.0.0", "license": "MIT", "scripts": { "start": "webpack-dev-server" }, "devDependencies": { "awesome-typescript-loader": "3.2.3", "ts-loader": "^4.4.1", "typescript": "2.5.3", "webpack": "4.12.0", "webpack-cli": "^3.0.8", "webpack-dev-server": "3.1.4" } } Is there another way in which to resolve this issue? @toddmotto
Metadata
Metadata
Assignees
Labels
No labels
