facebook / react-strict-dom

React Strict DOM (RSD) standardizes the development of styled React components for web and native.
https://facebook.github.io/react-strict-dom
MIT License
3.18k stars 161 forks source link

React strict dom doesn't work on expo web #199

Closed hyochan closed 2 months ago

hyochan commented 2 months ago

Describe the issue

I am facing below error when running example app in expo web. It work fine on iOS.

Screenshot 2024-09-04 at 1 06 21 PM
localhost/:35 

       GET http://localhost:8081/src/index.bundle?platform=web&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app net::ERR_ABORTED 500 (Internal Server Error)Understand this error
localhost/:1 Refused to execute script from 'http://localhost:8081/src/index.bundle?platform=web&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.Understand this error

Expected behavior

Works fine on web

Steps to reproduce

cd apps/examples

yarn && yarn dev:web

Test case

No response

Additional comments

No response

necolas commented 2 months ago

yarn && yarn dev:web

Please see the contributing file to see how to install and run things. This repo uses npm workspaces, not yarn