François Wouts
François Wouts
Hey @valgeirb, that's a good question. At this stage you can't directly use your `vite.config.ts` because it may conflict with Preview.js's own plugins, but you can at least add the...
Hi @wilomgfx, you might be able to make it work with the following in `reactpreview.config.js`: ``` const reactpreview = require("@reactpreview/config"); module.exports = reactpreview.config({ vite: { define: { // ... }...
Hi @olivier65, are you able to share a repo that you're testing Preview.js with?
Perhaps try a minimal template, for example CRA if you're using React 🙂
Hi @olivier65, would you be able to try the latest version (v1.12) and let me know if there is any improvement? Thanks!
Hi @AdrienMergalet, thanks for the bug report. Are you sure this is how postcss-preset-env is meant to be used? As far as I understand it, it's not a plugin.
That's interesting, does it still happen if you restart VS Code? The integration with PostCSS is done through Vite so it might be best to try to make it work...
Could you try https://previewjs.com instead? This will ultimately replace React Preview, and it has more recent dependencies so might work better :)
Thanks for your patience in debugging this! I've been able to reproduce the `Invalid PostCSS Plugin found at: plugins[0]` error, but I didn't quite manage to make Preview.js crash in...
I believe this bug was resolved as part of the transition to Preview.js and Vite 3. Feel free to reopen if that's not the case :)