You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I sadly stumble across an issue with Nuxt 3 and Vite, because "require" is not supported (Webpack only).
ReferenceError: require is not defined
And swell-js makes use of require for the isomorphic fetch package afaik.
As stated in this discussion: (nuxt/nuxt#12797)
is it possible to use import instead of require? :)
The text was updated successfully, but these errors were encountered:
markus-gx
changed the title
Require is not define | Vite issue
Require is not defined | Vite issue
Oct 14, 2022
I sadly stumble across an issue with Nuxt 3 and Vite, because "require" is not supported (Webpack only).
ReferenceError: require is not defined
And swell-js makes use of require for the isomorphic fetch package afaik.
As stated in this discussion: (nuxt/nuxt#12797)
is it possible to use import instead of require? :)
The text was updated successfully, but these errors were encountered: