SilentRhetoric
SilentRhetoric
SSolidJS
Created by SilentRhetoric on 9/30/2024 in #support
Vinxi server build fails: Big integer literals not available in target environment ("es2019")
Where does this need to be documented? In the Vinxi config docs?/
4 replies
SSolidJS
Created by SilentRhetoric on 9/30/2024 in #support
Vinxi server build fails: Big integer literals not available in target environment ("es2019")
Hey! I never saw this until now! Should'a tagged me! Thank you SO much for this! It immediately solved my problem. I had the config elsewhere instead of under server:, and so it was not having any effect on the server build 🤦‍♂️. I was pulling my hair out trying to troubleshoot this... 😅
4 replies
SSolidJS
Created by SilentRhetoric on 9/5/2023 in #support
Creating Package - Need Bundling Help
Wow! Thank you! I will get back into this as soon as I’m done with my day job. Thank you!
14 replies
SSolidJS
Created by SilentRhetoric on 9/5/2023 in #support
Creating Package - Need Bundling Help
In the dev folder
14 replies
SSolidJS
Created by SilentRhetoric on 9/5/2023 in #support
Creating Package - Need Bundling Help
Are you able to load the example site?
14 replies
SSolidJS
Created by SilentRhetoric on 9/5/2023 in #support
Creating Package - Need Bundling Help
On background, I did try using rollup but was not successful with that, either
14 replies
SSolidJS
Created by SilentRhetoric on 9/5/2023 in #support
Creating Package - Need Bundling Help
No worries, didn't mean to chase!
14 replies
SSolidJS
Created by SilentRhetoric on 9/5/2023 in #support
Creating Package - Need Bundling Help
@thetarnav Also, please feel free to let me know if this is beyond what is reasonable to ask for help with.
I just know that bundler stuff has given me more gray hairs than anything else, and I’ve never published a browser package before, so I’m just trying to read stuff online and try random config setting & plugins. But I’m spiraling and lost 😅
14 replies
SSolidJS
Created by SilentRhetoric on 9/5/2023 in #support
Creating Package - Need Bundling Help
OK, I have made the repo public now https://github.com/SilentRhetoric/solid-algo-wallets The package code is in src The demo app that produces the error is in dev Use the build+pack script to build with tsup and pack the lib into a tarball with npm pack The demo app imports the lib from a file path in package.json Let me know if this enables you to see the issue 🙏
14 replies
SSolidJS
Created by SilentRhetoric on 9/5/2023 in #support
Creating Package - Need Bundling Help
Hey, thanks for reaching out. I am using a primitive or two and have never encountered any issues with them. But the libs I am trying to integrate in my lib are not as simple and elegant as the Primitives! I will tidy up the repo and demo site for my lib and share it so you can see, probably later this week. It is not particularly complex, so I think it will be easy to see what’s happening.
14 replies
SSolidJS
Created by SilentRhetoric on 7/3/2023 in #support
Why is storageSignal possibly null?
and I could just type the signal to avoid any nulls
15 replies
SSolidJS
Created by SilentRhetoric on 7/3/2023 in #support
Why is storageSignal possibly null?
const darkMode = document.documentElement.classList.contains("dark") ? "dark" : "light"
const [theme, setTheme] = makePersisted(createSignal<"light" | "dark">(darkMode), {
name: "theme",
})
const darkMode = document.documentElement.classList.contains("dark") ? "dark" : "light"
const [theme, setTheme] = makePersisted(createSignal<"light" | "dark">(darkMode), {
name: "theme",
})
15 replies
SSolidJS
Created by SilentRhetoric on 7/3/2023 in #support
Why is storageSignal possibly null?
@lexlohr This is brilliant... so much clearer and more intuitive
15 replies
SSolidJS
Created by SilentRhetoric on 7/3/2023 in #support
Why is storageSignal possibly null?
That appears to make things much simpler! Will this be released or do I need to pull it down another way? (If so, how?)
15 replies
SSolidJS
Created by SilentRhetoric on 7/3/2023 in #support
Why is storageSignal possibly null?
Thank you! I guess the pop-up tooltip in VSCode didn’t show me the same view because I was trying to override the Accessor to only return T and never null I ended up making an adapter function to handle the null
15 replies
SSolidJS
Created by SilentRhetoric on 4/10/2023 in #support
mergeProps deeply?
Thanks, I think I can get the job done with shallow merge like this
const myObjWithDefaults = mergeProps(
{
key1: defaultValue1,
key2: defaultValue2
},
props.myObj
)
const myObjWithDefaults = mergeProps(
{
key1: defaultValue1,
key2: defaultValue2
},
props.myObj
)
4 replies
SSolidJS
Created by SilentRhetoric on 3/19/2023 in #support
Props/Default Defaults
OK, so it is a convenience for authoring components with default props
4 replies