Skip to content

Warning on Build: Dynamic and Static Import Conflict #669

Open
@tberk

Description

@tberk

Environment

  • Operating System: Linux
  • Node Version: v20.11.1
  • Nuxt Version: 3.10.2
  • CLI Version: 3.10.1
  • Nitro Version: 2.8.1
  • Package Manager: pnpm@8.15.3
  • Builder: -
  • User Config: modules, runtimeConfig, routeRules, app, vite, build, radix, gtag, colorMode, auth, typescript, devtools
  • Runtime Modules: @sidebase/nuxt-auth@0.6.7, @vueuse/nuxt@10.7.2, @nuxtjs/device@3.1.1, @pinia/nuxt@0.5.1, @pinia-plugin-persistedstate/nuxt@1.2.0, @nuxtjs/tailwindcss@6.11.4, @nuxtjs/color-mode@3.3.2, nuxt-swiper@1.2.2, nuxt-icon@0.6.8, radix-vue/nuxt, shadcn-nuxt@0.9.0, nuxt-gtag@1.2.0
  • Build Modules: -

Reproduction

No response

Describe the bug

I've encountered a warning during the build process.
I get this error both on Vercel and Ubuntu node server
Auth works as intended on Vercel but I have some problems on node server I dont know if they are related to this.

WARN  [plugin:vite:reporter]
(!) /home/ubuntu/projects/******.com/node_modules/.pnpm/@sidebase+nuxt-auth@0.6.7_next-auth@4.22.5_vue@3.4.19/node_modules/@sidebase/nuxt-auth/dist/runtime/middleware/auth.mjs is dynamically imported by virtual:nuxt:/home/ubuntu/projects/******.com/.nuxt/middleware.mjs but also statically imported by /home/ubuntu/projects/******.com/node_modules/.pnpm/@sidebase+nuxt-auth@0.6.7_next-auth@4.22.5_vue@3.4.19/node_modules/@sidebase/nuxt-auth/dist/runtime/plugin.mjs, dynamic import will not move module into another chunk.

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.xbugA bug that needs to be resolvedhelp-neededAction needed: The help of the community would be appreciatedp3Minor issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions