-
Notifications
You must be signed in to change notification settings - Fork 113
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
Require() of ES Module ... error when importing Doughnut chart #100
Comments
For Nuxt bridge, try |
@victorgarciaesgi , I checked with 2.1.2 but also gave the same result. |
Hey @jclaessens97, adding these lines to the nuxt.config and restarting the sandbox server should solve the problem:
Some extra infos here: https://v3.nuxtjs.org/concepts/esm/ |
Thanks @mirkopoloni ! Missed that part of the nuxt docs completely 😄 |
Thanks @mirkopoloni I forgot about this Nuxt option. I will add it to the docs |
Describe the bug
I'm trying to use a Dougnut chart in Nuxt Bridge, so I'm following the examples from Nuxt 2 + SSR + composition-api (without importing composition-api since it should be in Nuxt Bridge already(?).
However as soon as I import DoughnutChart from
vue-chart-3
I'm getting hit with arequire() of ES Module ...
error fromlodash-es
which is a dependency of@vue/composition-api
. I thought it would have something to do with Nuxt Bridge, but as soon as I started building the repro sandbox, it gave the same thing, so I guess there is something else to it?To Reproduce
repro
Version of
vue-chart-3
Tried both v2.0.3 and v3.1.0
Version of Vue
The text was updated successfully, but these errors were encountered: