Closed e2corporation closed 5 years ago
Do you have a minimal reproduction repo?
@oliviertassinari This is on a private stack, but it should be easily reproduced using the gatsby-cli site starter.
gatsby new gatsby-site
"@material-ui/core": "^4.2.1",
"@material-ui/styles": "^4.2.1",
"gatsby-plugin-material-ui": "^2.1.4",
injectFirst:true
in gatsby-config.js
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-material-ui`,
options: {
stylesProvider: {
injectFirst: true,
},
},
},
],
};
npm run build
or gatsby build
@e2corporation @oliviertassinari I tried the reproduction. With gatsby in version 2.13.39 I get no error. Can you also switch to the current gatsby version and check if the error still exists?
@oliviertassinari Thanks for the feedback, yes I did run tests with 2.13.39 and received the same results. I'll try again to see what happens.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.
I have this exact same problem how it was fixed for you ? @e2corporation
When running gatsby build and
injectFirst:true
, the build fails with a WebPack Build error WebpackError: RangeError: Maximum call stack size exceededUpgrading to newer versions of Gatsby and related plugins still resulted in error. Is this due to a missing dependency when injectFirst mode is enabled? Both NPM and Yarn were used for package setup but still resulted in a failed build.
Running
gatsby develop
however works fine.package.json Dependencies