Unable to find modules
Hey guys, new to solidjs and SSR frameworks in general. I'm testing out a solidstart template generated using a community tool called "Create JD app". This allows me to quickly spin up a boilerplate project similar to create-t3-app.
The problem is that I'm facing this runtime error:
Doing a build results in the following error:
Here's my vite config file:
I would love to know what is happening, since there's no errors that are being thrown by my editor, not sure of where to start...
2 Replies
seems to me like the import alias
@
is not set up to point to the root of your project
if you're not getting any errors in your editor then typescript is probably set up properly
you can either use this to sync your vite paths to the typescript.json file:
https://www.npmjs.com/package/vite-tsconfig-paths
or do it yourself with adding something like this to your vite.config.ts
:
Damn, you’re absolutely right, how could i have missed this. Thank you so much.