question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

8.0.9 to 8.1.1 - RangeError: Maximum call stack size exceeded

See original GitHub issue
// postcss.config.js
const autoprefixer = require("autoprefixer");
const tailwindcss = require("tailwindcss");

module.exports = {
  plugins: [tailwindcss("./tailwind.js"), autoprefixer],
};
/* tailwind.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

.react-rotating-text-cursor {
  animation: blinking-cursor 0.8s cubic-bezier(0.68, 0.01, 0.01, 0.99) 0s
    infinite;
}

@keyframes blinking-cursor {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

When running postcss src/styles/tailwind.css -o src/styles/app.css after bumping the postcss version (and changing nothing else) from 8.0.9 to 8.1.1 I get the following error:

RangeError: Maximum call stack size exceeded
    at E:\workspace\website\src\styles\tailwind.css:1:1
    at E:\workspace\website\src\styles\tailwind.css:3:1
    at Function.keys (<anonymous>)
    at clone (E:\workspace\website\node_modules\autoprefixer\lib\prefixer.js:11:24)
    at clone (E:\workspace\website\node_modules\autoprefixer\lib\prefixer.js:23:17)
    at clone (E:\workspace\website\node_modules\autoprefixer\lib\prefixer.js:23:17)
    at clone (E:\workspace\website\node_modules\autoprefixer\lib\prefixer.js:23:17)
    at clone (E:\workspace\website\node_modules\autoprefixer\lib\prefixer.js:23:17)
    at clone (E:\workspace\website\node_modules\autoprefixer\lib\prefixer.js:23:17)
    at clone (E:\workspace\website\node_modules\autoprefixer\lib\prefixer.js:23:17)
    at clone (E:\workspace\website\node_modules\autoprefixer\lib\prefixer.js:23:17)
    at clone (E:\workspace\website\node_modules\autoprefixer\lib\prefixer.js:23:17) {
  postcssNode: <ref *1> Root {
    raws: { semicolon: false, after: '\r\n' },
    type: 'root',
    nodes: [
      [Comment], [Comment], [Comment], [Rule],    [Comment], [Comment],
      [Rule],    [Comment], [Rule],    [Comment], [Rule],    [Comment],
      [Comment], [Rule],    [Comment], [Rule],    [Comment], [Comment],
      [Rule],    [Comment], [Rule],    [Comment], [Rule],    [Comment],
      [Rule],    [Comment], [Rule],    [Comment], [Rule],    [Rule],
      [Rule],    [Comment], [Comment], [Rule],    [Comment], [Comment],
      [Rule],    [Comment], [Rule],    [Comment], [Rule],    [Comment],
      [Rule],    [Comment], [Rule],    [Comment], [Rule],    [Comment],
      [Rule],    [Comment], [Rule],    [Comment], [Rule],    [Comment],
      [Rule],    [Comment], [Rule],    [Comment], [Rule],    [Comment],
      [Rule],    [Comment], [Rule],    [Comment], [Rule],    [Comment],
      [Comment], [Rule],    [Comment], [Rule],    [Comment], [Comment],
      [Rule],    [Comment], [Rule],    [Comment], [Comment], [Rule],
      [Rule],    [Comment], [Rule],    [Rule],    [Rule],    [Comment],
      [Comment], [Rule],    [Comment], [Rule],    [Comment], [Rule],
      [Comment], [Rule],    [Rule],    [Rule],    [Rule],    [Rule],
      [Rule],    [Comment], [Rule],    [Comment],
      ... 3708 more items
    ],
    source: { input: [Input], start: [Object] },
    lastEach: 47,
    indexes: { '47': 308 },
    rawCache: {
      beforeComment: '',
      beforeRule: '\r\n',
      indent: '  ',
      beforeOpen: ' ',
      semicolon: true,
      beforeDecl: '\n',
      colon: ': ',
      beforeClose: '\n'
    },
    proxyCache: [Circular *1],
    _autoprefixerDisabled: false,
    _autoprefixerGridStatus: false,
    _autoprefixerPrefix: false,
    [Symbol(isClean)]: true
  }
}

Looks like an issue with autoprefixer under the hood.

Didn’t see anything regarding this in the chat / issues. Sorry if it’s already being addressed.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
aicommented, Oct 1, 2020

Can you update PostCSS to 8.1.1 and Autoprefixer to 10.0.1 and try again?

1reaction
aicommented, Oct 1, 2020

What Autoprefixer version do you use?

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript RangeError: Maximum Call Stack Size Exceeded
The JavaScript RangeError: Maximum call stack size exceeded is an error that occurs when there are too many function calls, or if a...
Read more >
[Bug-15833] 8.0.8 Nightly Flex Repeater Issues
BrowserConsole - RangeError: Maximum call stack size exceeded ... 8.0.9 Stable version, looks like the same bug, but in breakpoint container ...
Read more >
Maximum call stack size exceeded when using node 18.6 #1848
Exception in PromiseRejectCallback: node:internal/modules/esm/loader:178 return output; RangeError: Maximum call stack size exceeded ...
Read more >
javascript - Maximum call stack size exceeded error
It means that somewhere in your code, you are calling a function which in turn calls another function and so forth, until you...
Read more >
Changelog - Cypress Documentation
Fixed a regression in 6.5.0 that could cause Cypress to crash with a RangeError: Maximum call stack size exceeded at _deconstructPacket error.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found