-
Notifications
You must be signed in to change notification settings - Fork 39
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
Forced to use props={{}} #48
Comments
I have the same problem. I'm forced to use I am forced to write: <MyComponent {...{props: myProps}} /> But I wish I could write (but this does not work): <MyComponent {...myProps} /> |
With the latest versions of stable, or dev, i do not get the experience you have above. I will try to create a minimal repro with the issue. |
Here is a repro: https://github.com/pksorensen/tsx-issue just run npm install and npm run dev and you should see the build errors |
3.0.0-dev.* needs additional configuration. Downgrade vue-tsx-support to 2.3.3, or add I tested both way, and both worked as expected. BTW, I don't recommend to use 3.0.0-dev.*, because there is a possibility of some breaking changes until release of 3.0.0. |
I will try to downgrade- only reason I tried to use 3.0 was that I could not get it working. I will report back
Sent from mobil
…________________________________
From: wonderful-panda <notifications@github.com>
Sent: Monday, January 27, 2020 3:43:37 AM
To: wonderful-panda/vue-tsx-support <vue-tsx-support@noreply.github.com>
Cc: Poul Kjeldager Sørensen <pks@s-innovations.net>; Author <author@noreply.github.com>
Subject: Re: [wonderful-panda/vue-tsx-support] Forced to use props={{}} (#48)
3.0.0-dev.* needs additional configuration.
Downgrade vue-tsx-support to 2.3.3, or add "jsxFactory": "VueTsxSupport" to your tsconfig.json (
see https://github.com/wonderful-panda/vue-tsx-support/tree/beta#installation)
I tested both way, and both worked as expected.
BTW, I don't recommend to use 3.0.0-dev.*, because there is a possibility of some breaking changes until release of 3.0.0.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#48?email_source=notifications&email_token=AAUXW7ZNIODTVEDTPVNQ4CDQ7ZC5TA5CNFSM4JLY3QLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ6FRKY#issuecomment-578574507>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAUXW74NHYAX7RMXPIU32QTQ7ZC5TANCNFSM4JLY3QLA>.
|
I am running into a problem that I dont think is how it used to work, but not sure.
Given my component.
i cant use title as an attribute, but have to use props= - is that intended?
The text was updated successfully, but these errors were encountered: