-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
docs: update build-from-scratch replacements for SolidJS #5216
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
Changes from 1 commit
4b51011
fade4fe
71591b2
fee828b
c406ffc
baf13f6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,5 +5,10 @@ replace: | |||||
| '@tanstack/react-start': '@tanstack/solid-start', | ||||||
| 'React': 'SolidJS', | ||||||
| 'react-router': 'solid-router', | ||||||
| 'react react-dom': 'solid-js', | ||||||
| '@vitejs/plugin-react': 'vite-plugin-solid', | ||||||
| '@types/react @types/react-dom ': '', | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the trailing space in the key so the replacement actually matches. The key has a trailing space, which will prevent matches in most occurrences. - '@types/react @types/react-dom ': '',
+ '@types/react @types/react-dom': '',📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| '"jsx": "react-jsx"': '"jsx": "preserve",\n "jsxImportSource": "solid-js"', | ||||||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||||||
| 'react\'s': 'solid\'s' | ||||||
|
jakst marked this conversation as resolved.
Outdated
|
||||||
| } | ||||||
| --- | ||||||
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.
so i guess it just string replaces the docs? I wonder how we would add the viteSolid({ssr: true}) part
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.
Yeah, it's not the most flexible solution. I couldn't figure out a way to fix the children prop types in __root.tsx either
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.
Not pretty but could just add
'viteReact()': 'viteSolid({ssr:true})'into the replace array as wellThere 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.
I think there are some bigger differences like not hydrating the whole html document
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.
Problem seems to be in the
__root.tsxfilefrom looking at the start-bare and start-basic examples it seems like it should be:
at least this got it as far running under development mode.
will see if I can push to this PR.
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.
I think this should all be resolved now. @jakst @brenelz please check if you are happy with the proposed changes.