Can't use with Vite
stereobooster opened this issue · comments
stereobooster commented
Description
JS files contain type import/re-export, which seems strange to me. But maybe I'm not aware of reasons why it is done this way.
Related to
- Components
- Demo
- Docs
- Typings
Steps to reproduce
https://github.com/stereobooster/vite-rnw/tree/main/v-react-native-ui-lib
pnpm i
pnpm run dev
Expected behavior
It would compile
Actual behavior
✘ [ERROR] No matching export in "node_modules/.pnpm/react-native-ui-lib@7.8.0_react-native-gesture-handler@2.12.1_react-native-reanimated@3.4.2_r_naazehwcpbm3vrsrmvvjw27quy/node_modules/react-native-ui-lib/src/style/scheme.js" for import "SchemeType"
node_modules/.pnpm/react-native-ui-lib@7.8.0_react-native-gesture-handler@2.12.1_react-native-reanimated@3.4.2_r_naazehwcpbm3vrsrmvvjw27quy/node_modules/react-native-ui-lib/src/style/index.js:4:28:
4 │ export { default as Scheme, SchemeType, Schemes, SchemeChangeListener } from "./scheme";
╵ ~~~~~~~~~~
More Info
Code snippet
n/a
Screenshots/Video
n/a
Environment
"react-native": "^0.72.4",
"react-native-gesture-handler": "^2.12.1",
"react-native-reanimated": "^3.4.2",
"react-native-ui-lib": "^7.8.0",
"react-native-web": "^0.19.8"
Affected platforms
- Android
- iOS
- Web