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

No main/module field in package.json #206

Open
olehmisar opened this issue Jan 13, 2025 · 3 comments
Open

No main/module field in package.json #206

olehmisar opened this issue Jan 13, 2025 · 3 comments

Comments

@olehmisar
Copy link

Describe the bug

I get this error when trying to import runed package in vitest

Error: Failed to resolve entry for package "runed". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." specifier in "runed" package

Reproduction

no

Logs

No response

System Info

not relevant

Severity

blocking all usage of WithRunes

@olehmisar
Copy link
Author

Actually, to fix it, you need to add this in package.json

  "exports": {
    ".": {
      "default": "./dist/index.js",

@abdel-17
Copy link
Collaborator

Do you have vitest configured with Svelte correctly? Can you share a reproduction?

@ym-han
Copy link

ym-han commented Jan 19, 2025

I ran into this as well, and fixed it by upgrading my vitest dep. (might also need to upgrade runed and vite.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants