-
Notifications
You must be signed in to change notification settings - Fork 318
Preact+Typescirpt not working on clean nextjs project (dependencies were not found) #119
Comments
Same issue on css + typescript
My bad, wrong next.config.js, that works fine:
Just ignore my comment |
I don't think Typescript is causing this issue, since without it I am running into the same exact error. |
Fix released as |
Your commit did indeed solve the alias problem but for some reason the components do not render. I have an index.js containing this:
What I end up with on the client is the following:
Here are my environment info:
Did I just omit something? |
There's an issue with preact-compat in general, it's the same issue horodnicdragos mentioned. I have the same issue as well. |
@vladnicula @horodnicdragos @timneutkens, i checked the referenced the preact-compat issue, and they say "its probably an aliasing issue." i stepped thru my config, and confirmed all aliases point to do any of us have a working preact solution? i also agree w--it's likely unrelated to anything ts. |
server.js
package.json (no dev dependencies, this is all)
next.config.js (maybe I'm doing this wrong? have tried various combination based on main docs of nextjs)
tsconfig.json (copy paste from ts script example)
But I get this error:
Maybe the alias created by the preact plugin will help debug this:
the client
and the server
The text was updated successfully, but these errors were encountered: