-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
i.createSuper is not a function
swc error with parcel build
#7580
Comments
Confirmed. Downgrading to Specifically this:
And if I try to downgrade to any other parcel version (i.e. I'm not sure what is going on, but I hope that this is a helpful clue. I can just downgrade to |
Could you try bumping the version of |
Aha! Yes, confirmed, force upgrading swc/helpers fixes this in the latest parcel. This was in my yarn.lock:
The second
So, I added the latest:
The first
If I simply change my manual entry of
in the package.lock file for the library, that will consolidate
and the error message goes away. This can, of course, also be fixed with Thank you for suggesting that. A nice easy fix, and I get to stay on the latest parcel! As for the actual bug, it seems like maybe this is the source, where this ought to point to a more recent swc/helpers: And perhaps this line:
ought to direct the user to a particular version (although, in my case, I only encountered that error because I happened to building both a library and a front-end application, and the error is not applicable in the latter where this issue occurs anyway. Still, it would be helpful.) And finally, I am not sure if this is even a bug, but it was strange when I could not downgrade from If you'd like I can make separate issues for each of these and we can close this one. Thank you for helping regardless! |
fyi, I also tested this with forcing the use of |
So you're saying that both the old and the new version alone of |
Not exactly.
The only reason that I mention the second @swc/helpers is because in my case, I was required to manually add the dependency because of this error message:
And because it didn't tell me which version to use, I added the most recent, which was I think a solution would be for But, additionally, maybe the message about adding the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. |
🐛 bug report
Using
parcel@2.2.1
, this happens when Iparcel build
and then serve thedist
directory:I have recently updated several packages, so I cannot be 100% sure that this is related to the latest parcel update, but I am posting it here in case anybody else has noticed something similar and can concur.
I am still able to
parcel serve
without issue.But,
parcel build src/index.html --no-cache --no-scope-hoist --public-url ./
will produce code that will yield the above error.🎛 Configuration (.babelrc, package.json, cli command)
.parcelrc:
babel.config.json (only being used for jest, but posting it here anyway)
I don't want to post my whole package.json, but this is a monorepo and I have
"@swc/helpers": "^0.3.2"
in thepackage.json
of the repo that I am building, and"parcel": "^2.2.1"
in the base of the monorepo. This was all working when I was on"parcel": "^2.0.0-rc.0"
. Like mentioned above, I updated many things at once, so I am not clear if is parcel or something else.I also have these plugins:
🤔 Expected Behavior
parcel build
should produce error-free js whenparcel serve
works.😯 Current Behavior
buffer.js:40 Uncaught TypeError: i.createSuper is not a function
💁 Possible Solution
🔦 Context
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: