auth-module icon indicating copy to clipboard operation
auth-module copied to clipboard

Enable module cause double import vue script

Open rutcreate opened this issue 3 years ago • 4 comments

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.js
  • vue.runtime.common.prod.js

Screen Shot 2564-11-22 at 15 43 46

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 Screen Shot 2564-11-22 at 15 45 06

With module @nuxtjs/auth-next Screen Shot 2564-11-22 at 15 46 18

rutcreate avatar Nov 22 '21 08:11 rutcreate

nothing?

rutcreate avatar Jan 25 '22 05:01 rutcreate

This is similar to the issue I was having using vue-mc. Please check: https://github.com/FiguredLimited/vue-mc/issues/120#issuecomment-518218464

suinly avatar Feb 07 '22 14:02 suinly

Faced the same problem. Are there options to fix this?

Markiz9999 avatar Aug 23 '23 12:08 Markiz9999

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.

TheDutchCoder avatar Oct 14 '23 17:10 TheDutchCoder