# Is it possible to use ionic with nuxt?

**URL:** <https://forum.ionicframework.com/t/is-it-possible-to-use-ionic-with-nuxt/163202>\
**Category:** Ionic Framework\
**Created:** [May 6, 2019, 6:35pm UTC](https://forum.ionicframework.com/t/is-it-possible-to-use-ionic-with-nuxt/163202 "2019-05-06T18:35:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Feelthewind](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/feelthewind/32/125622_2.png) [@Feelthewind](https://forum.ionicframework.com/u/Feelthewind)\
**Post date:** [May 6, 2019, 6:35pm UTC](https://forum.ionicframework.com/t/is-it-possible-to-use-ionic-with-nuxt/163202/1 "2019-05-06T18:35:09Z")

</div>

Ionic vue beta is released and i wonder if it’s possible to use it with nuxt as well.  
Nothing appears when i search with nuxt and ionic so…  
Is there any information for this one?

---

<div class="post-metadata">

**Author:** ![bsarvari](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@bsarvari](https://forum.ionicframework.com/u/bsarvari)\
**Post date:** [June 13, 2019, 12:50pm UTC](https://forum.ionicframework.com/t/is-it-possible-to-use-ionic-with-nuxt/163202/2 "2019-06-13T12:50:45Z")

</div>

@Feelthewind,  
I was wondering about the same question.

More specifically, it seems that Nuxt.js apps need to be served by an http server, however cordova apps by default are loaded from the filesystem (using the file:// protocol). I added the ionic web-view to my cordova app, which serves the app instead of loading it from the filesystem and the Nuxt app I included in my cordova app worked with no issues.

However, because I don’t see other developers use Nuxt in cordova apps along with the ionic web-view, I feel a bit uneasy about building a large app on this architecture.

---

<div class="post-metadata">

**Author:** ![Gomah](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@Gomah](https://forum.ionicframework.com/u/Gomah)\
**Post date:** [November 7, 2019, 10:10pm UTC](https://forum.ionicframework.com/t/is-it-possible-to-use-ionic-with-nuxt/163202/3 "2019-11-07T22:10:20Z")

</div>

It’s possible, using the SPA mode.

You’ll need to use the [router-module](https://github.com/nuxt-community/router-module) to use `IonicVueRouter`:

```auto
import Vue from 'vue';
import { IonicVueRouter } from '@ionic/vue';
import Home from '@/pages/index';

Vue.use(IonicVueRouter);

export function createRouter() {
  return new IonicVueRouter({
    mode: 'history',
    routes: [
      {
        path: '/',
        component: Home,
      },
    ],
  });
}

```

Then create a plugin to use Ionic:

plugins/ionic.js

```auto
import Vue from 'vue';
import Ionic from '@ionic/vue';
import '@ionic/core/css/ionic.bundle.css';

Vue.use(Ionic);

```

& reference it to the nuxt.config.js:

```auto
  plugins: [
    { src: '~/plugins/ionic.js', mode: 'client' },
  ]

```

It must be client-side only, as Ionic is defining custom elements to the DOM:

![32%20am](https://global.discourse-cdn.com/ionicframework/original/3X/1/1/117ddc13c930effb751bc22e42c5a373cad72e2f.png)

---

<div class="post-metadata">

**Author:** ![pauln](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@pauln](https://forum.ionicframework.com/u/pauln)\
**Post date:** [December 29, 2020, 8:23pm UTC](https://forum.ionicframework.com/t/is-it-possible-to-use-ionic-with-nuxt/163202/5 "2020-12-29T20:23:36Z")

</div>

Thank you Gomah, this seems like a promising combination! Would love to see Ionic as one of the built in UI framework options in Nuxt 3 🤞 🙏

---

<div class="post-metadata">

**Author:** ![FranciscoKloganB](https://avatars.discourse-cdn.com/v4/letter/f/eada6e/32.png) [@FranciscoKloganB](https://forum.ionicframework.com/u/FranciscoKloganB)\
**Post date:** [October 18, 2021, 7:23pm UTC](https://forum.ionicframework.com/t/is-it-possible-to-use-ionic-with-nuxt/163202/6 "2021-10-18T19:23:28Z")

</div>

When creating a project for a Nuxt 3 project via Nuxt CLI, I am asked what is my deployment target:

- Server (node.js hosting)
- Static (static/jamstack hosting)

I do not know what to choose in order to work with Ionic. I am a complete noob in frontend framework matters.

Any directions?

---

<div class="post-metadata">

**Author:** ![avinmaster](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/avinmaster/32/140383_2.png) [@avinmaster](https://forum.ionicframework.com/u/avinmaster)\
**Post date:** [January 2, 2022, 10:48am UTC](https://forum.ionicframework.com/t/is-it-possible-to-use-ionic-with-nuxt/163202/7 "2022-01-02T10:48:30Z")

</div>

Choose Static, because you haven’t node.js server on your phone.

---

<div class="post-metadata">

**Author:** ![Trevor-143](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@Trevor-143](https://forum.ionicframework.com/u/Trevor-143)\
**Post date:** [June 30, 2024, 5:31am UTC](https://forum.ionicframework.com/t/is-it-possible-to-use-ionic-with-nuxt/163202/8 "2024-06-30T05:31:10Z")

</div>

There is no way am living VUEJS for anything else after this becomes stable. I had previously tried out NUXT IONIC and failed to build the app with not tweaks. Now, recently i tried out again and it built. Am starting a new app project next month and am using NUXT IONIC. All in. This project i feel has under estimated potential. Thanks to the IONIC AND NUXT team. God bless you all.

---

<div class="post-metadata">

**Author:** ![Trevor-143](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@Trevor-143](https://forum.ionicframework.com/u/Trevor-143)\
**Post date:** [June 30, 2024, 5:46am UTC](https://forum.ionicframework.com/t/is-it-possible-to-use-ionic-with-nuxt/163202/9 "2024-06-30T05:46:59Z")

</div>

![Screenshot 2024-06-30 083801](https://global.discourse-cdn.com/ionicframework/original/3X/f/2/f2122287c2d68b7b19844f0de8edd7cf5e748458.png)  
This instruction might be helpfull
