Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using oh-vue-icons with NuxtJS #15

Closed
wh1337 opened this issue Jul 13, 2021 · 4 comments
Closed

Using oh-vue-icons with NuxtJS #15

wh1337 opened this issue Jul 13, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@wh1337
Copy link

wh1337 commented Jul 13, 2021

I'm having an issue getting this set up with nuxtjs.

I have the following in ~/plugins/icons.ts:

import Vue from "vue";
import OhVueIcon from 'oh-vue-icons';

import {
  FaFlag
} from "oh-vue-icons/icons/fa";

OhVueIcon.add(FaFlag);

Vue.component("v-icon", OhVueIcon);

Then my nuxt.config.ts:

...
  plugins: [
    '~/plugins/apollo.ts',
    '~/plugins/icons.ts'
  ],
...

  build: {
    transpile: [/oh-vue-icons/],
  }

I have also tried

transpile: ["oh-vue-icons"]

I get the following error:

image

Any idea why it's not working?

@plushugh
Copy link

Had the same problem with nuxt
image

@Renovamen
Copy link
Owner

@cryptic-ai @plushugh Hi, some critical files are missed in v0.4.4 due to my mistake when publishing it, sorry for that. The problem has been fixed in v0.4.5, thank you!

Renovamen added a commit that referenced this issue Jul 18, 2021
@wh1337
Copy link
Author

wh1337 commented Jul 18, 2021

Awesome thank you so much! Fantastic library!

@wh1337
Copy link
Author

wh1337 commented Jul 19, 2021

Just coming back to verify that the issue is fixed in v0.4.5. Thanks again!

@Renovamen Renovamen added the bug Something isn't working label Jul 22, 2021
Renovamen added a commit that referenced this issue Jul 24, 2021
Renovamen added a commit that referenced this issue Jul 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants