-
-
Notifications
You must be signed in to change notification settings - Fork 4
Adds a second example #21
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
Conversation
Just noticing this draft PR. |
Regarding the error about |
@@ -5,7 +5,7 @@ | |||
"sideEffects": false, | |||
"type": "module", | |||
"scripts": { | |||
"build": "NODE_ENV=production react-router build", | |||
"build": "NODE_ENV=production pnpm fbtee:manifest && pnpm fbtee:collect && pnpm fbtee:translate && react-router build", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't pnpm fbtee:translate && react-router build
suffice here, as it anyways works on a different set of files then the ones created by manifest and collect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The translate command needs .source_strings.json
.
3b83a0c
to
acd251f
Compare
With today's release of Developers can also check out Athena Crisis, which uses fbtee extensively. The README was updated with these details, including how to set up fbtee using |
I think what's missing right now is a setup description for users using frameworks such as React Router (formerly Remix) or Tanstack Start, where the currently described approach doesn't work without issues. |
@cpojer so e.g. with regards to e.g. TanStack Start the approach with react({
babel: {
presets: [fbteePreset],
},
}), leads to while the previously working workaround of instead using vite-plugin-babel with
with
now atleast in development leads to:
when simply being run via Explaining these could broaden the audience. |
I just added React Router to the web app template here: nkzw-tech/web-app-template@9168b12. It's using Vite just normally. Those errors are not originating from fbtee, so if they don't allow adding additional babel plugins or aren't using ESM, then those projects need to be fixed. I'm happy to help with that, if they are open to supporting these features. |
Here we are at the problem with React-Router. You aren't using Framework Mode, right? If you try it with one app using Framework Mode you should encounter the issue. While I understand that the issues are not rooted in fbtee, I can just offer the point of view of a user that plays around with web development, yet doesn't focus on it. Here for me it's basically |
I added a paragraph to the README on how to set it up with React Router's Vite plugin: https://github.com/nkzw-tech/fbtee#using-babel-directly-instead-of-vites-react-plugin The recommendation here hasn't changed as the React Router issue at remix-run/react-router#12352 has not been resolved. Using |
For anyone looking to use fbtee with TanStack Start, check this out: amosbastian/fbtee-tanstack-start#1 |
This adds a second sample.
From my perspective the following gaps:
Uncaught SyntaxError: Identifier 'RefreshRuntime' has already been declared (at root.tsx:29:1)
. I assume some issue with the HMR due to the React Router and React Vite plugins.Not actually deployed yet, so we'd need to check if it works when deployed.