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

Error with type: module #507

Closed
Yuripetusko opened this issue Dec 26, 2022 · 2 comments
Closed

Error with type: module #507

Yuripetusko opened this issue Dec 26, 2022 · 2 comments

Comments

@Yuripetusko
Copy link

I was under impression that since this was merged when I do type: "module" thebn preconstruct fix and preconstruct build should be aware of it and main filed can point to esm file, but instead I get:

error @myorg/my-package main field is invalid, found `"dist/my-package.esm.js"`, expected `"dist/my-package.cjs.js"
@Yuripetusko
Copy link
Author

Oh actually I see that #485 was never merged

@Yuripetusko
Copy link
Author

Realised that I don't really need preconstruct for that, switched directly to parcel for esm only build

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

1 participant