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

Compatibility with NuxtJS #3

Closed
ghostlexly opened this issue Feb 23, 2021 · 4 comments
Closed

Compatibility with NuxtJS #3

ghostlexly opened this issue Feb 23, 2021 · 4 comments

Comments

@ghostlexly
Copy link

Hello,

Is there any way to make it compatible with NuxtJS ?

Thanks

@Renovamen
Copy link
Owner

Hi @ghostlexly, if you are using Nuxt for server side rendering, maybe you need to add this package to the transpile build option in nuxt.config.js:

export default {
  // ...
  build: {
    transpile: ['oh-vue-icons']
  }
}

or Nuxt will not bundle it, see Nuxt's docs for details.

Sorry I forgot to mention this in docs, I'll add it later, thanks for you issue.

@ghostlexly
Copy link
Author

ghostlexly commented Feb 26, 2021

Hello,
Thank you for your fast reply.
It is working great but a error occur :
(it's can't find jQuery on server side)

image

@Renovamen Renovamen reopened this Feb 27, 2021
@Renovamen
Copy link
Owner

Oh, I haven't encountered such an error, but maybe it's because core-js is also transpiled.

However, this package doesn't need core-js actually, it's my fault to add it to dependencies, sorry again. I'll remove it in the next release. 😂

@Renovamen
Copy link
Owner

core-js is removed in v0.1.11, take a look at it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants