【发布时间】:2021-08-11 18:09:31
【问题描述】:
我在启动 react-native 开发服务器、连接设备和调试时收到以下错误。
Refused to execute script from 'http://localhost:8086/index.android.bundle?platform=android&dev=true&minify=false' because its MIME type ('application/octet-stream') is not executable, and strict MIME type checking is enabled.
谁能帮助我了解如何更改从 Metro bundler 提供的捆绑文件的 mime 类型?
【问题讨论】:
标签: react-native metro-bundler