zoontek / react-native-edge-to-edge

Effortlessly enable edge-to-edge display in React Native (formerly known as react-native-bars).
MIT License
442 stars 19 forks source link

react-native-is-edge-to-edge on web #33

Closed dppo closed 1 day ago

dppo commented 1 day ago

Before submitting a new issue

Bug summary

✘ [ERROR] No matching export in "node_modules/react-native-web/dist/index.js" for import "TurboModuleRegistry"

node_modules/react-native-is-edge-to-edge/dist/index.mjs:1:19:
  1 │ import { Platform, TurboModuleRegistry } from 'react-native';
    ╵                    ~~~~~~~~~~~~~~~~~~~

Library version

0.1.0

Environment info

react-native-web

Steps to reproduce

react-native-web TurboModuleRegistry

Reproducible sample code

use react-native-is-edge-to-edge in react-native-web
zoontek commented 1 day ago

Fixed in 0.1.2

dppo commented 1 day ago

Fixed in 0.1.2

new error in 0.1.2

Failed to resolve entry for package "react-native-is-edge-to-edge". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-pre-bundle]

package.json use "module": "dist/index.mjs", but no index.mjs file
zoontek commented 1 day ago

Oops, forgot to add back esm to build format. Fixed now.