-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
5.1 introduces TypeScript property errors (too strict?) #2558
Comments
Thanks for looking. Okay, it's not strict, but it is a behavior change, since the code runs fine in 5.0 and fails in 5.1. |
Thats true, but it's also the "right" way as you can see in the TC39 proposal (got it from this comment). So For now, you can fool TS. I'm not sure if this is going to be resolved anytime soon. Here's a quote from the corresponding babel issue:
|
Is this still an issue? Feel free to reopen if needed |
Updating a project from Webpacker 5.0.x to 5.1, and after going through all the upgrade documentation to change to babel-loader. Everything else is up to date...
I have a simple Stimulus controller, defined to start as follows:
Works fine with Webpacker 5.0.1, in 5.1.1 now I am getting
TypeError: Cannot set property hiddenClass of #<extended> which has only a getter
It seems as though the babel loader has put TypeScript into strict mode? Or am I missing something?
The text was updated successfully, but these errors were encountered: