platformatic: React is not defined (running dashboard development server)

By running the dashboard development server: pnpm run dashboard:start

I get “Uncaught ReferenceError: React is not defined” errors on my browser (see attachment)

image

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (21 by maintainers)

Most upvoted comments

Couldn’t reproduce it on latest main. Can you please give some more infos?

Try to delete vite cache with rm -rf node_modules/.vite

We had this problem in another internal project, and solved with the explicit import.

Problem is: I still don’t have this on this dashboard and that’s a mystery. I am running Node v18 but I don’t think that’s it.

Anyway soon we’ll migrate very soon to a dashboard built with @platformatic/ui-components and problem will be solved, hopefully 😃