-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gatsby): pin webpack to fix unexpected token error during build (#…
…11640) ## Description This addresses #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 <!-- Have any questions? Check out the contributing docs at https://gatsby.app/contribute, or ask in this Pull Request and a Gatsby maintainer will be happy to help :) --> ## Related Issues - Addresses #11198 - Related to webpack/webpack#8656
- Loading branch information
1 parent
1298d85
commit f460b7f
Showing
2 changed files
with
184 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters