Effect-TS / examples

A repository of examples showing how to use Effect
82 stars 10 forks source link

[fix runtime error about starter-vite-tsc] ReferenceError: React is not defined #21

Open coleea opened 8 months ago

coleea commented 8 months ago

when I run "pnpm -C ./starter-vite-tsc/ run dev", server successfully start.

but in browser, error occured and nothing shows.

in console, "ReferenceError: React is not defined".

I solved this error by adding react plugin in vite.config.js

Pull Requests

We welcome contributions via pull requests! Here are some guidelines to help you get started:

  1. Fork the repository and clone it to your local machine.
  2. Create a new branch for your changes: git checkout -b my-new-feature
  3. Install dependencies: pnpm install (pnpm@8.x)
  4. Make your changes and add tests if applicable.
  5. Run the tests: pnpm test
  6. Create a changeset for your changes: before committing your changes, create a changeset to document the modifications. This helps in tracking and communicating the changes effectively. To create a changeset, run the following command: pnpm changeset.
  7. Commit your changes: after creating the changeset, commit your changes with a descriptive commit message: git commit -am 'Add some feature'.
  8. Push your changes to your fork: git push origin my-new-feature.
  9. Open a pull request against our main branch.

Pull Request Guidelines

changeset-bot[bot] commented 8 months ago

⚠️ No Changeset found

Latest commit: b8cb4a2aa13492f1c682cef38e9550e771f36359

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR