Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing "main" in package.json #742

Closed
jacktan165 opened this issue Jan 29, 2024 · 1 comment
Closed

Missing "main" in package.json #742

jacktan165 opened this issue Jan 29, 2024 · 1 comment

Comments

@jacktan165
Copy link

Environment


  • Operating System: Darwin
  • Node Version: v16.18.1
  • Nuxt Version: 2.15.8
  • CLI Version: 3.10.0
  • Nitro Version: -
  • Package Manager: [email protected]
  • Builder: webpack
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

import this package from another package, and it will complain it cannot find it.

Describe the bug

It is missing the "main" key in package.json, hence I get Cannot find module '@nuxt/test-utils' error.

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

This package is not usable in Nuxt 2 and it is ESM-only so it does not have a main entry.

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants