hupe1980 / gatsby-plugin-material-ui

Gatsby plugin for Material-UI with built-in server-side rendering support
MIT License
136 stars 25 forks source link

WebpackError: RangeError: Maximum call stack size exceeded with gatsby-plugin-material-ui #53

Closed zerubeus closed 4 years ago

zerubeus commented 4 years ago

I for a mysterious reason got this error when using the plugin without disabling the css autoprefix disableAutoprefixing: true switching this to true fixed my problem, I'll leave this here in case someone else has the same issue:

The callstack:

295 |       return plugin(this.result.root, this.result);
  296 |     } catch (error) {
> 297 |       this.handleError(error, plugin);
      | ^
  298 |       throw error;
  299 |     }
  300 |   };

  WebpackError: RangeError: Maximum call stack size exceeded

  - lazy-result.js:297 LazyResult.run
    node_modules/postcss/lib/lazy-result.js:297:1

  - lazy-result.js:281 LazyResult.sync
    node_modules/postcss/lib/lazy-result.js:281:1

  - lazy-result.js:305 LazyResult.stringify
    node_modules/postcss/lib/lazy-result.js:305:1

  - lazy-result.js:350 LazyResult.get
    node_modules/postcss/lib/lazy-result.js:350:1

  - autoprefixer.js:8
    node_modules/gatsby-plugin-material-ui/src/autoprefixer.js:8:55

  - lazy-result.js:295 LazyResult.run
    node_modules/postcss/lib/lazy-result.js:295:1

  - lazy-result.js:281 LazyResult.sync
    node_modules/postcss/lib/lazy-result.js:281:1

  - lazy-result.js:305 LazyResult.stringify
    node_modules/postcss/lib/lazy-result.js:305:1

  - lazy-result.js:350 LazyResult.get
    node_modules/postcss/lib/lazy-result.js:350:1

  - autoprefixer.js:8
    node_modules/gatsby-plugin-material-ui/src/autoprefixer.js:8:55

  - lazy-result.js:295 LazyResult.run
    node_modules/postcss/lib/lazy-result.js:295:1

  - lazy-result.js:281 LazyResult.sync
    node_modules/postcss/lib/lazy-result.js:281:1

  - lazy-result.js:305 LazyResult.stringify
    node_modules/postcss/lib/lazy-result.js:305:1

  - lazy-result.js:350 LazyResult.get
    node_modules/postcss/lib/lazy-result.js:350:1

  - autoprefixer.js:8
    node_modules/gatsby-plugin-material-ui/src/autoprefixer.js:8:55

  - lazy-result.js:295 LazyResult.run
    node_modules/postcss/lib/lazy-result.js:295:1
oliviertassinari commented 4 years ago

@zerubeus Do you have a minimal reproduction?

stale[bot] commented 4 years ago

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.

stale[bot] commented 4 years ago

This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.