Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack Error #10

Open
millerdrew opened this issue Jun 19, 2018 · 0 comments
Open

Webpack Error #10

millerdrew opened this issue Jun 19, 2018 · 0 comments

Comments

@millerdrew
Copy link

millerdrew commented Jun 19, 2018

I got this error from Webpack:

screen shot 2018-06-18 at 11 45 33 pm

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

millerdrew added a commit to millerdrew/redux-store that referenced this issue Jun 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant