You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the RiotJS library in a project and Parcel as the builder/bundler. I am using typescript to have better code completion and errors reporting in my IDE.
The issue is, whenever I try to make an interface or type declaration in the <script> part of a .riot component, I get the following error at the interface declaration:
@parcel/transformer-js: Expression expected
I double checked, the <script> tag is set to lang="ts". Also the project compile fine if I remove the interface declaration.
I have made a very simple "Hello person" type of project to illustrate the issue that I join to this discussion. If someone try to build it, should have the error for test-ts-app.riot at line 13.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am using the RiotJS library in a project and Parcel as the builder/bundler. I am using typescript to have better code completion and errors reporting in my IDE.
The issue is, whenever I try to make an interface or type declaration in the <script> part of a .riot component, I get the following error at the interface declaration:
@parcel/transformer-js: Expression expected
I double checked, the <script> tag is set to lang="ts". Also the project compile fine if I remove the interface declaration.
I have made a very simple "Hello person" type of project to illustrate the issue that I join to this discussion. If someone try to build it, should have the error for test-ts-app.riot at line 13.
testts.zip
Thanks for any pointer you could provide to help me solve this issue.
Beta Was this translation helpful? Give feedback.
All reactions