Closed SBJD closed 3 years ago
Hello @SBJD. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction
will be closed if they have no activity within 3 days.
The reproduction steps won't introduce postcss-preset-env
to the project.
An actual reproduction repo is required.
Describe the bug
Hi everyone,
I have an important issue with Vitejs. I'm working with Craft (CMS), I was using webpack and I switched for vitejs but Swiper (7.0.1) doesn't seem to work with it.
I know there is a similar issue here https://github.com/vitejs/vite/issues/1591 but seens I am on Vite 2.4.2 I can't resolve it.
[vite:css] Maximum call stack size exceeded file: /var/www/html/src/styles.css error during build: RangeError: Maximum call stack size exceeded at /var/www/html/node_modules/swiper/swiper-bundle.min.css:13:12259 at Function.keys (<anonymous>) at _clone (/var/www/html/node_modules/postcss-preset-env/node_modules/autoprefixer/lib/prefixer.js:22:42) at _clone (/var/www/html/node_modules/postcss-preset-env/node_modules/autoprefixer/lib/prefixer.js:38:17) at _clone (/var/www/html/node_modules/postcss-preset-env/node_modules/autoprefixer/lib/prefixer.js:38:17) at _clone (/var/www/html/node_modules/postcss-preset-env/node_modules/autoprefixer/lib/prefixer.js:38:17) at _clone (/var/www/html/node_modules/postcss-preset-env/node_modules/autoprefixer/lib/prefixer.js:38:17) at _clone (/var/www/html/node_modules/postcss-preset-env/node_modules/autoprefixer/lib/prefixer.js:38:17) at _clone (/var/www/html/node_modules/postcss-preset-env/node_modules/autoprefixer/lib/prefixer.js:38:17) at _clone (/var/www/html/node_modules/postcss-preset-env/node_modules/autoprefixer/lib/prefixer.js:38:17) at _clone (/var/www/html/node_modules/postcss-preset-env/node_modules/autoprefixer/lib/prefixer.js:38:17) error
Reproduction
I don't really know how to reproduce it seens Swiper was working on webpack but:
Install vite >= 2.x : https://vitejs.dev/guide/#scaffolding-your-first-vite-project Install Swiper: https://swiperjs.com/get-started
System Info
Used Package Manager
yarn
Logs
Validations