I’m tinkering, trying to add Ionic to a basic vite-based Vue app.
npx create-vite-app vv-ionic
cd vv-ionic
yarn
yarn dev
Vite replaces webpack and uses JS with ES Modules.
I’ve looked through the Vue with JS section of the docs, and can’t figure out how to just add @ionic/vue
to the Vite Vue project. Without typescript, do I have to import all the main.js imports in the index.html?
It is looking for an ES module /@modules/@ionic/vue/dist/index.esm.js (main.js:11)
, which Ionic doesn’t have.
Here’s the repo: https://github.com/dolthead/vv-ionic
I’ve also tried starting from the Vite-TS starter at https://github.com/ktsn/vite-typescript-starter, but am getting the same error trying to add and load Ionic.