auth-module
auth-module copied to clipboard
Enable module cause double import vue script
Version
module: 5.0.0-1637333559.35dbd53 nuxt: 2.15.7
Nuxt configuration
Fresh install with eslint and prettier
Nuxt configuration
Just yarn add @nuxt/auth-next and add module to nuxt.config.js
modules: ['@nuxtjs/auth-next'],
What is expected?
It should contains only 1 vue script from vue.runtime.esm.js
What is actually happening?
It contains 2 vue scripts.
vue.runtime.esm.jsvue.runtime.common.prod.js

Steps to reproduce
- Fresh install nuxt
- Install module
- Add module to
nuxt.config.js
Problem?
It causes unnecessary script when build.
Without module @nuxtjs/auth-next

With module @nuxtjs/auth-next

nothing?
This is similar to the issue I was having using vue-mc. Please check: https://github.com/FiguredLimited/vue-mc/issues/120#issuecomment-518218464
Faced the same problem. Are there options to fix this?
I discovered this bug today as well. It would be great if this could get some attention as bundles now get bloated quite a bit.