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

Build error with Parcel #2

Open
ClemensLey opened this issue Dec 12, 2024 · 1 comment
Open

Build error with Parcel #2

ClemensLey opened this issue Dec 12, 2024 · 1 comment

Comments

@ClemensLey
Copy link

When building with Parcel we are getting an error

"main": false,
  >   |               ^ invalid type: boolean false, expected a borrowed string at line 5 column 14

Could you fix it or do you have a suggestion for what we can do?

@ljharb
Copy link
Member

ljharb commented Dec 12, 2024

This is a bug in Parcel, since main doesn't have to be a string, and false is a perfectly valid value (and, since nothing's importing it without a subpath, the main doesn't even matter, and Parcel shouldn't even be looking at it.

What you can do is file a bug on Parcel's resolver, or switch to a different bundler.

(same issue as es-shims/dunder-proto#2)

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

2 participants