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

Fix ESM import #363

Merged
merged 1 commit into from
May 13, 2023
Merged

Fix ESM import #363

merged 1 commit into from
May 13, 2023

Conversation

acaldas
Copy link
Contributor

@acaldas acaldas commented May 5, 2023

Building an app with this dependency with Vite causes the following error:
[vite:build-import-analysis] Failed to resolve entry for package "graphql-codegen-typescript-validation-schema". The package may have incorrect main/module/exports specified in its package.json.

This is due to the module field being incorrectly defined, it should be dist/module/index.js

@acaldas acaldas changed the title Fix ESM Fix ESM import May 5, 2023
@Code-Hex
Copy link
Owner

@acaldas Thanks!

@Code-Hex Code-Hex merged commit b53a81a into Code-Hex:main May 13, 2023
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

Successfully merging this pull request may close these issues.

2 participants