500 [vite-node] [VITE_ERROR] ....entry.mjs

I am trying to use
Chart.js
in my app but there are some problems with the SSR, so I tried to fix it like in a Svelte App I did with the following:

nuxt.config.ts

vite: {
        ssr: {
            noExternal: ['chart.js/**']
        }
    }


As soon as I add that kind of vite config it will crash and show me a error screen.
[vite-node] [VITE_ERROR] /@fs./node_modules/nuxt/dist/app/entry.mjs

at /@fs./node_modules/nuxt/dist/app/entry.mjs
image.png
Was this page helpful?