Skip to content

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined #281

@Ombrenoirz

Description

@Ombrenoirz

Environment

Operating system Windows 10.0.26200
CPU Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 cores)
Node.js version v22.20.0
nuxt/cli version 3.34.0
Package manager npm@11.11.1
Nuxt version 4.4.2
Nitro version 2.13.1
Builder vite@7.3.1
Config colorMode, compatibilityDate, css, devtools, i18n, icon, modules, vite
Modules @nuxt/eslint@1.15.2, @nuxt/ui@4.5.1, @nuxtjs/i18n@10.2.3, nuxt-auth-utils@0.5.29, @nuxt/hints@1.0.0

Reproduction

Just updated to nuxt 4.4.2 and npm to 11. Looking for new modules, I found hints. I did "npx nuxt module add hints".

Describe the bug

After running the install command, I got message:

■ Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in C:...\node_modules@nuxt\hints\package.json

◇ Install failed for @nuxt/hints@1.0.0. Do you want to continue adding the module to nuxt.config?
│ No

So I ran the command again:

Resolved @nuxt/hints, adding module...

● @nuxt/hints is already installed

● Adding @nuxt/hints to the modules

Somehow hints is installed, and it works. Maybe a bug ?

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions