S
SolidJS6mo ago
wenzani

Comp is not a function?

Hi all, just started working on SolidStart 1.0 today and as I set a few things up and started the dev server I received an error off the bat. Don't really know where to go from here, so I thought that I might as well ask a question on Discord.
No description
6 Replies
peerreynders
peerreynders6mo ago
It's not clear where you are at: - You followed the Getting Started instructions - Which template did you install? - You installed the dependencies - And you immediately ran the dev server without any code modifications? ... and then you were staring at this screen?
wenzani
wenzaniOP6mo ago
@peerreynders my bad, sorry for the lack of details This is the bare template from SolidStart added Prisma, Lucia Auth and set them both up. (Lucia’s documentation was slightly outdated, but i had set it up correctly based on the new file paths SolidStart 1.0 is now using like APIEvent and FetchEvent). I also had Tanstack Solid Query installed but not imported anywhere before this happened
peerreynders
peerreynders6mo ago
The error is just showing the source for mergeProps. Otherwise there really is no context. Clearly something is using mergeProps inappropriately possibly caused by a defect even further upstream...but without any code for context there really isn't anything to reason about. Do you have any idea what Promise.Comp in lazyRoute.js is supposed to be?
GitHub
solid/packages/solid/src/server/rendering.ts at b5a379f889e8f7a208b...
A declarative, efficient, and flexible JavaScript library for building user interfaces. - solidjs/solid
wenzani
wenzaniOP6mo ago
I honestly have no idea what Promise.Comp is, this was my first exploratory project of SolidStart (and Solid)
peerreynders
peerreynders6mo ago
Is it possible you are referencing something as a component (in JSX) which isn't actually a function? https://github.com/solidjs/solid/issues/97#issuecomment-549006885
GitHub
Comp is not a function · Issue #97 · solidjs/solid
I created this repo: https://github.com/Seanmclem/solidjs-router It's a simple SPA router implementation for solid-js. It works well locally in my solid-js boilerplate, but when I try to build ...
wenzani
wenzaniOP6mo ago
Hmm I'll do a quick check and get back to this, thanks for the link @peerreynders got it to work! It was exactly as described, thank you!
Want results from more Discord servers?
Add your server