S
SolidJS•2mo ago
Deflaktor

create example solidstart project takes forever

No description
7 Replies
Deflaktor
Deflaktor•2mo ago
the creating project step is taking forever and Im not sure how to get some meaningful output
peerreynders
peerreynders•2mo ago
What's your platform information, i.e. OS. bun being the youngest runtime also means it's the highest risk across all platforms ; have you tried pnpm create solid instead?
Tommypop
Tommypop•2mo ago
Maybe try forcing version 0.5.11 when creating: bun create solid@0.5.11. (I removed the use of a function that wasn't implemented in bun and node 18) Bun did implement this function here: https://github.com/oven-sh/bun/pull/11392, but there hasn't been a release yet so updating bun likely won't work
Birk Skyum
Birk Skyum•2mo ago
you can try using the latest main branch with bun upgrade --canary
Deflaktor
Deflaktor•2mo ago
sorry for late reply. Im on Linux Mint 21.3. Neither the bun upgrade --canary nor the bun create solid@0.5.11 resolved the issue. It still is a never ending process when creating the project. pnpm create solid yields:
$ pnpm create solid
file:///home/def/.cache/pnpm/dlx/npldyqlpgo53tcapyuagobcetq/18fd42361da-c93a/node_modules/.pnpm/create-solid@0.5.11/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/create-solid@0.5.11/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)
Am I the only one with this problem? 😄
Tommypop
Tommypop•2mo ago
@Deflaktor What node version are you on?
Deflaktor
Deflaktor•2mo ago
v12.22.9 thanks that was the issue I was on an ancient nodejs version
Want results from more Discord servers?
Add your server
More Posts
FIXED: fetch error on route load function```ts const getUser = cache(async (username: string) => { const data = await fetch(ApiEndpoints.Error: Hydration Mismatch.Why does my project show a hydration error on the first local render, but it loads fine after refresA simple case(ts) of using "native drag(webapi)" with solid.Perhaps useful for some people: https://gist.github.com/beoxgame/4a973c2764c1935b10ccfba8f1a8a138How to export setter function for component?Hi, I'm relatively new to Solid world and whole frontend, I used to work in Java style codebases. I createAsync vs createResource and how does Suspense work?Hello. From doing some searches in here it looks like `createAsync` (+`cache`) seems to be the new rtree structure: granular updates and retain open statecan only replace the whole tree at once so I tried reconcile with a store, but I don't want all <detdeploying a solid js app in render while consuming a backend apiif i'll need to make the code into production & i have the backend url hosted, ```js const BACKENDHow do i fetch data correctly in a route?Hi, I am currently trying to fetch a .json, which I just need to import an array, that I then assignAdding new element to an array before the last element inside solid store```tsx const [tabStore, setTabStore] = createStore<{ contents: TabContent[] }>({ contents: [ {Using SolidStart's prisma template app, getting odd error & crash from the route.Crash log: ``` /home/ile/src/polvirekisteri/polvet/node_modules/@solidjs/start/dist/server/StartSer