-
Notifications
You must be signed in to change notification settings - Fork 159
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
Typescript setup not working as expected #320
Comments
@cyrilchapon Can you show me how to do this? |
Once remix-run/remix#4371 (comment) this released, I think the template's versions can get bumped. That should fix all of the |
I did provide a reproduction step @patrickDouglas hum great to hear thanks !
I'll watch the internal remix issue :) |
Hey @cyrilchapon Thanks for opening an issue. Seems like there is a mixture of things going on here We definitely want to fix the issues with stuff that As for providing a true Typescript template. Yeah, this pains me. Personally I love Typescript, and I dislike writing apps without it. We do want to prioritize a Typescript template so expect to see this land. Again, it might be a little while. |
Hey @byrichardpowell , Honestly thanks for being so reinsuring here. The last @mkevinosullivan comment on the node template issue was actually frightening about Shopify care about typescript support for app developers. Don't hesitate to reach, if needed. When pointed in the right direction, I can surely help on this. |
The remix team is aware of another issue as well, which will solve the |
Hey everyone 👋 We've now released the Typescript version of the template. When you run The Javascript template is a separate branch here: https://github.com/Shopify/shopify-app-template-remix/tree/javascript We will maintain the both and continue to improve the Typescript expereince. @paulomarg 's focus for example is Typescript type codegen for GraphQL queries. I won't scoop the work he's doing, but it's looking awesome and he'll share some stuff and ask for feedback soon. We'd love to hear what you think because we want to make the experience as good as possible. Thank for your patience waiting for this. Closing this issue as we now have a Typescript template. Please open a new issue for any Typescript issues you may discover. |
Issue summary
After "activating" Typescript in a fresh install, and setting up a
typecheck
script as recommended in Remix official docs; I'm getting unexpected errors.Expected behavior
The doc states
So I was expecting this to work with Typescript. And not only to compile with Remix, but also to be "easily fixable" when trying to typecheck — the whole point of Typescript not only being to transpile, but to typecheck in the first place.
Actual behavior
I'm getting typecheck errors
Steps to reproduce the problem
.js
to.ts
, and every.jsx
to.tsx
noImplicitAny: true
in tsconfig.jsonLoaderArgs
/Action Args
/ etc."typecheck": "tsc"
yarn typecheck
Side note : (not trying to be spicy, but constructive) There has been a popular 1.5 years old issue about awful Typescript support in the Node template. As of 2023, the vanilla default is still a strange choice — and even more on a new template project like this one. Hard Typescript integration is exhausting, worrying, a even strict nogo for many developers in environments and frameworks. Furthermore, the whole underlying stack of React, Shopify app bridge, Polaris, Remix, etc. have first class Typescript support. What's the point here, seriously 🤨 ?
That argument there about "accessibility" of starters is IMHO a pure nonsense : creating Shopify apps involves deep fullstack development and multi-language understanding, often database + API knownledge, in-depth React — + 2 professional component frameworks — skills, GraphQL, OAuth, modern Node.js with not-that-simple architecture with Remix. That is not accessible by any means in the first place; and what we do need are professionnal tools 😬.
The text was updated successfully, but these errors were encountered: