Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Vite: Maximum call stack size exceeded #29

Closed
richardtallent opened this issue Mar 15, 2021 · 6 comments
Closed

Vite: Maximum call stack size exceeded #29

richardtallent opened this issue Mar 15, 2021 · 6 comments

Comments

@richardtallent
Copy link

Looking forward to playing with this! Didn't get far today, it bailed when loading the first page under vite:

Unknown error from PostCSS plugin. Your current PostCSS version is 8.2.6, but autoprefixer uses 7.0.35. Perhaps this is the 
source of the error below.
2:31:45 PM [vite] Internal server error: Maximum call stack size exceeded
  Plugin: vite:css
  File: C:/project-path/src/styles/base.css
      at Function.keys (<anonymous>)
      at _clone (C:\project-path\node_modules\autoprefixer\lib\prefixer.js:22:42)
      at _clone (C:\project-path\node_modules\autoprefixer\lib\prefixer.js:38:17)
      at _clone (C:\project-path\node_modules\autoprefixer\lib\prefixer.js:38:17)
      at _clone (C:\project-path\node_modules\autoprefixer\lib\prefixer.js:38:17)
      at _clone (C:\project-path\node_modules\autoprefixer\lib\prefixer.js:38:17)
      at _clone (C:\project-path\node_modules\autoprefixer\lib\prefixer.js:38:17)
      at _clone (C:\project-path\node_modules\autoprefixer\lib\prefixer.js:38:17)
      at _clone (C:\project-path\node_modules\autoprefixer\lib\prefixer.js:38:17)
      at _clone (C:\project-path\node_modules\autoprefixer\lib\prefixer.js:38:17)

The base.css file contains only the three main @apply statements for tailwind:

@tailwind base;
@tailwind components;
@tailwind utilities;

Here's my tailwind.config.js file, nothing special:

module.exports = {
	purge: ["./index.html", "./src/**/*.{vue,js,ts}"],
	darkMode: "class",
	theme: {
		extend: {},
	},
	variants: {
		extend: {},
	},
	plugins: [],
}

I'm using vite 2.1.0 with vue 3.0.7.

@DevNvll
Copy link

DevNvll commented Mar 15, 2021

Same using next@10.0.5

@adamwathan
Copy link
Member

Try updating to the very latest autoprefixer, I have seen this occur myself as well and that solved it for me:

npm install -D autoprefixer@latest

@jpsca
Copy link

jpsca commented Mar 15, 2021

Updating to the latest autoprefix solved it for me as well, using plain postcss, no framework.

@opdavies
Copy link

Try updating to the very latest autoprefixer

I had the same issue in a Drupal theme using Webpack Encore. Updating to the latest autoprefixer fixes it for me too.

@adamwathan
Copy link
Member

Going to close since updating autoprefixer seems to be the solution!

@richardtallent
Copy link
Author

Confirmed, all good here now! 🥇 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants