https://github.com/negezor/nuxt-edge-plugins-error
Clone the repository
Install modules
Run
Look in the console
In a global context, Vue should using mixin
Mixing is added to the local Vue instance
Roughly, you can change the local version to global in the module.
Hi. Thanks for reproduction repository.
About this:
I think this problem is due to the use of esm
It is not. ESM is only required in the context of Nuxt itself, not for runtime. Webpack bundles everything and parses jsx files.
Also, this is normal that requiring vue in a file inside of node_modules does not guaranty same versions. Nuxt copies every template into .nuxt directory.
This bug seems a regression with recent Webpack/Vuelidate releases.
UPDATE
Simply renaming plugins/vuelidate.jsx to plguins/vuelidate.js seems to fix the problem. (Temporary solution)
After I renamed the files in the plugins from mjs to js, yes, now it works.
This bug-report has been cancelled by @manniL.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Hi. Thanks for reproduction repository.
About this:
It is not. ESM is only required in the context of Nuxt itself, not for runtime. Webpack bundles everything and parses
jsxfiles.Also, this is normal that requiring
vuein a file inside of node_modules does not guaranty same versions. Nuxt copies every template into.nuxtdirectory.This bug seems a regression with recent Webpack/Vuelidate releases.
UPDATE
Simply renaming
plugins/vuelidate.jsxtoplguins/vuelidate.jsseems to fix the problem. (Temporary solution)