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

package.json incorrect module entry #10

Closed
trynulI opened this issue Mar 1, 2024 · 5 comments
Closed

package.json incorrect module entry #10

trynulI opened this issue Mar 1, 2024 · 5 comments

Comments

@trynulI
Copy link

trynulI commented Mar 1, 2024

...package "zod_utilz". The package may have incorrect main/module/exports...

there is a problem when using it in vitejs, it reports that the 'module entry' is incorrect
is index.ts instead of index.js

image
image

@issam-seghir
Copy link

issam-seghir commented Mar 3, 2024

I am facing the same issues . Have you found any workaround?

@JacobWeisenburger
Copy link
Owner

I'm working on a fix

@JacobWeisenburger
Copy link
Owner

Should be working now: 0.8.2

Please let me know if it's working for you.

@sneko
Copy link

sneko commented Oct 29, 2024

@JacobWeisenburger I think it should be reopen. I'm using 0.8.3 but facing this warning every time I run my program:

(node:44267) [DEP0151] DeprecationWarning: No "main" or "exports" field defined in the package.json for /xxxxxxxxxxxx/node_modules/zod_utilz/ resolving the main entry point "index.js", imported from /xxxxxxxxxxxx/src/yyyyyyy.ts.
Default "index" lookups for the main are deprecated for ES modules.

@JacobWeisenburger
Copy link
Owner

please make a new issue for this

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

4 participants