How to integrate with Vite? #5403
Replies: 1 comment
-
Ok. Seems to work now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an existing Vite project that had been using Vuetify, and I'd like to try out MWC. However, I cannot get it work since rollup throws an error when trying to import one of the components as shown in the example:
[vite]: Rollup failed to resolve import "@material/web/checkbox/checkbox.js"
The build docs only state how to setup a build with rollup only, using npx, but how do I have to configure Vite so
vite build
works?!I have this in my vite.config.ts and thought it might conflict:
But even if I take this out, the build does not work.
Beta Was this translation helpful? Give feedback.
All reactions