ethanniser / the-beth-stack

An opinionated hypermedia-driven architecture for building web apps
MIT License
848 stars 81 forks source link

error: Could not resolve: "react". Maybe you need to "bun install"? #5

Closed FMGordillo closed 1 year ago

FMGordillo commented 1 year ago

I don't know if this is replicable, but I tried doing in a parallel project, and cloning your repository, and this happened:

code/beth_stack [main●] » bun run src/index.tsx 

error: Could not resolve: "react". Maybe you need to "bun install"?
import { Elysia, t } from "elysia";
^
code/beth_stack/src/index.tsx:1:1 

Is there any way to get around this?

bun: 0.6.2
node: 18.17.1
os: linux
ethanniser commented 1 year ago

Make sure your tsconfig JSX settings are aligned with the ones shown in the typed-html docs