PrimeReact 10.0.1 and Vite #144
-
I was very excited to see the new Tailwind PrimeReact today and decided to give it a try, but ran into a few issues. I think I jury-rigged my way by them, but wanted you to know. I'm trying PrimeReact 10.0.1 with vite First i got a a bunch like this... I was able to get by these errors by changing esm.js to esm.mjs in the package.json in node_modules/primereact/api (there was no api.esm.js file). I did this for all the package.json files in the primereact folder.
Once I got by those errors, I had an error "no export named default" importing Tailwind using this command I changed index.esm.mjs in node_modules/primereact/passthrough/tailwind from this
to this
and imported it as a named import. I then had to delete the .vite/deps directory and recompile and it seems to be working. I probably created other problems that I havent run into yet, but just wanted you to know. If there is another way to get around these issues, please let me know. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fixed with 10.0.2 |
Beta Was this translation helpful? Give feedback.
Fixed with 10.0.2