Skip to content

Commit

Permalink
fix(gatsby): Pin webpack to fix gatsby build problem
Browse files Browse the repository at this point in the history
This addresses gatsbyjs#11198.

There's a regression bug webpack/webpack#8656 affecting 4.29.0 through at least 4.29.3 which causes errors like this during `gatsby build`.

  Error: ./.cache/async-requires.js 8:11
  Module parse failed: Unexpected token (8:11)
  You may need an appropriate loader to handle this file type.
  | exports.components = {
  |   "component---frontend-components-main-js": function componentFrontendCompo  nentsMainJs() {
  >     return import("/home/circleci/project/frontend/components/main.js"
  |     /* webpackChunkName: "component---frontend-components-main-js" */
  |     );
   @ ./.cache/production-app.js 18:0-45 21:23-36 26:23-36
  • Loading branch information
paulmelnikow committed Feb 8, 2019
1 parent 6bb338a commit e56cfa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"url-loader": "^1.0.1",
"uuid": "^3.1.0",
"v8-compile-cache": "^1.1.0",
"webpack": "^4.12.0",
"webpack": "~4.28.2",
"webpack-dev-middleware": "^3.0.1",
"webpack-dev-server": "^3.1.14",
"webpack-hot-middleware": "^2.21.0",
Expand Down

0 comments on commit e56cfa1

Please sign in to comment.