Named export from prime-react not found during build #1023
-
Hello, I am not sure if this is a primereact issue. But it works if I import this in other projects, where I don't use VPS. Some components from primereact cannot be imported during the build, also in the error message I am seeing a different import stmt. For instance : This import works during dev and also during build in project without VPS import { ProgressSpinner } from 'primereact/progressspinner'; In VPS project during build I get:
Any idea why this could happen? I am prerendering in case this makes a difference: ssr({
prerender: true
}) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Can you create a reproduction? Working around these issues is on the roadmap, and the more reproductions I can get the better. To answer your question: https://github.com/cyco130/vite-plugin-cjs-interop but there may be a simpler solution which I'll try once I get my hands on a reproduction. |
Beta Was this translation helpful? Give feedback.
https://vite-plugin-ssr.com/primereact