Deflaktor
Deflaktor
SSolidJS
Created by Deflaktor on 5/29/2024 in #support
create example solidstart project takes forever
I was on an ancient nodejs version
13 replies
SSolidJS
Created by Deflaktor on 5/29/2024 in #support
create example solidstart project takes forever
thanks that was the issue
13 replies
SSolidJS
Created by Deflaktor on 5/29/2024 in #support
create example solidstart project takes forever
v12.22.9
13 replies
SSolidJS
Created by Deflaktor on 5/29/2024 in #support
create example solidstart project takes forever
Am I the only one with this problem? 😄
13 replies
SSolidJS
Created by Deflaktor on 5/29/2024 in #support
create example solidstart project takes forever
pnpm create solid yields:
$ pnpm create solid
file:///home/def/.cache/pnpm/dlx/npldyqlpgo53tcapyuagobcetq/18fd42361da-c93a/node_modules/.pnpm/[email protected]/node_modules/create-solid/dist/index.mjs:53
`3:s,d:!1,i:0,c:{}});}if(l=u[i],l.t!==s&&!(s===1&&l.t===3)||(s===2&&(l.d||(l.d=!0,o[i]=[]),o[i].push(o={}),l.c[l.i++]=l={t:1,d:!1,i:0,c:{}}),l.d))return null;if(l.d=!0,s===1)o=c?o[i]:o[i]={};else if(s===0&&c)return null;return [i,o,l.c]}function aC(t){let e={},r={},s=e,o=r;for(let u=(0, O1.skipVoid)(t,0);u<t.length;){if(t[u]==="["){let i=t[++u]==="[",c=(0, Bf.parseKey)(t,u+=+i,"]");if(i){if(t[c[1]-1]!=="]")throw new Li.TomlError("expected end of table declaration",{toml:t,ptr:c[1]-1});c[1]++;}let l=Rf(c[0],e,r,i?2:1);if(!l)throw new Li.TomlError("trying to redefine an already defined table or value",{toml:t,ptr:u});o=l[2],s=l[1],u=c[1];}else {let i=(0, Bf.parseKey)(t,u),c=Rf(i[0],s,o,0);if(!c)throw new Li.TomlError("trying to redefine an already defined table or value",{toml:t,ptr:u});let l=(0, uC.extractValue)(t,i[1]);c[1][c[0]]=l[0],u=l[1];}if(u=(0, O1.skipVoid)(t,u,!0),t[u]&&t[u]!==`
^

SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
at async link (internal/modules/esm/module_job.js:42:21)
$ pnpm create solid
file:///home/def/.cache/pnpm/dlx/npldyqlpgo53tcapyuagobcetq/18fd42361da-c93a/node_modules/.pnpm/[email protected]/node_modules/create-solid/dist/index.mjs:53
`3:s,d:!1,i:0,c:{}});}if(l=u[i],l.t!==s&&!(s===1&&l.t===3)||(s===2&&(l.d||(l.d=!0,o[i]=[]),o[i].push(o={}),l.c[l.i++]=l={t:1,d:!1,i:0,c:{}}),l.d))return null;if(l.d=!0,s===1)o=c?o[i]:o[i]={};else if(s===0&&c)return null;return [i,o,l.c]}function aC(t){let e={},r={},s=e,o=r;for(let u=(0, O1.skipVoid)(t,0);u<t.length;){if(t[u]==="["){let i=t[++u]==="[",c=(0, Bf.parseKey)(t,u+=+i,"]");if(i){if(t[c[1]-1]!=="]")throw new Li.TomlError("expected end of table declaration",{toml:t,ptr:c[1]-1});c[1]++;}let l=Rf(c[0],e,r,i?2:1);if(!l)throw new Li.TomlError("trying to redefine an already defined table or value",{toml:t,ptr:u});o=l[2],s=l[1],u=c[1];}else {let i=(0, Bf.parseKey)(t,u),c=Rf(i[0],s,o,0);if(!c)throw new Li.TomlError("trying to redefine an already defined table or value",{toml:t,ptr:u});let l=(0, uC.extractValue)(t,i[1]);c[1][c[0]]=l[0],u=l[1];}if(u=(0, O1.skipVoid)(t,u,!0),t[u]&&t[u]!==`
^

SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
at async link (internal/modules/esm/module_job.js:42:21)
13 replies
SSolidJS
Created by Deflaktor on 5/29/2024 in #support
create example solidstart project takes forever
sorry for late reply. Im on Linux Mint 21.3. Neither the bun upgrade --canary nor the bun create [email protected] resolved the issue. It still is a never ending process when creating the project.
13 replies
SSolidJS
Created by Deflaktor on 5/29/2024 in #support
create example solidstart project takes forever
the creating project step is taking forever and Im not sure how to get some meaningful output
13 replies
SSolidJS
Created by Deflaktor on 7/15/2023 in #support
Losing reactivity in production build due to multi-project setup lib <--> app
I resolved the issue for now by using
"dependencies": {
"solid-js": "file:../common/node_modules/solid-js",
},
"dependencies": {
"solid-js": "file:../common/node_modules/solid-js",
},
in the app/package.json though I think it's a weird workaround.
14 replies
SSolidJS
Created by Deflaktor on 7/15/2023 in #support
Losing reactivity in production build due to multi-project setup lib <--> app
Thanks for the hints. Does that mean that in my setup solidjs is packaged twice in production build? Is this normal behavior for vite? Are all dependencies which both my library and app projects use, duplicated?
14 replies
SSolidJS
Created by Deflaktor on 7/15/2023 in #support
Losing reactivity in production build due to multi-project setup lib <--> app
So what do I need to do to make this multi-project setup work?
14 replies
SSolidJS
Created by Deflaktor on 7/15/2023 in #support
Losing reactivity in production build due to multi-project setup lib <--> app
Here is my current setup and I can reproduce that vite on the my-app project works but vite build && vite preview does not
14 replies
SSolidJS
Created by Deflaktor on 7/15/2023 in #support
Losing reactivity in production build due to multi-project setup lib <--> app
Okay I found the root cause. The problem is that I am having a multi-project setup. I have a part which is "common" project and a part which is "client". The client code calls some class inside the "common" project which runs the createEffect(). It seems that part is then not compiled correctly when using vite build.
14 replies
SSolidJS
Created by Deflaktor on 7/6/2023 in #support
Forward ref downstream
Thanks for the explanation. On one hand it is a genius solution by the framework, on the other hand (for me as a beginner) it seems like some magic is happening behind the scenes.
8 replies
SSolidJS
Created by Deflaktor on 7/6/2023 in #support
Forward ref downstream
Ok yeah that seems to work. Kinda difficult for me to wrap my head around how that signal setter works in all kinds of contexts.
8 replies
SSolidJS
Created by Deflaktor on 7/6/2023 in #support
Forward ref downstream
So I can just do
const [theDiv, setTheDiv] = createSignal(null);

return (
<div ref={setTheDiv}>
<MyComponent refToTheDiv={theDiv} />
</div>
);
const [theDiv, setTheDiv] = createSignal(null);

return (
<div ref={setTheDiv}>
<MyComponent refToTheDiv={theDiv} />
</div>
);
?
8 replies