Skip to content

No routes / Welcome component after installing the module #506

@bokub

Description

@bokub

Hello Sébastien!

I have a working Nuxt (4.3.1) app with Nuxt Content (3.11.2).

My app.vue looks like this:

<template>
  <NuxtLayout>
    <NuxtPage />
  </NuxtLayout>
</template>

When I install the module with npx nuxi@latest module add auth-utils, I have the following error in the console. I choose 'Yes' to add the module to my config.

■  Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined 
in /home/.../node_modules/nuxt-auth-utils/package.json
│
◇  Install failed for nuxt-auth-utils@0.5.29. Do you want to continue adding the module to nuxt.config?
│  Yes
│
●  Adding nuxt-auth-utils to the modules
ℹ Using Tailwind CSS from ~/../assets/css/tailwind.css                        
ℹ Nuxt Icon server bundle mode is set to local                                                  
✔ Nuxt Icon discovered local-installed 4 collections: bi, ic, lucide, uil                         
│
◆  Types generated in .nuxt.

Then, on every page I visit on my dev server, this is what I see. All routes are broken. There are no other changes than the nuxt.config.ts and the package.json changes caused by the module installation.

Image

How do I fix this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions