Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use with Vite #2730

Closed
3 of 7 tasks
stereobooster opened this issue Sep 2, 2023 · 0 comments
Closed
3 of 7 tasks

Can't use with Vite #2730

stereobooster opened this issue Sep 2, 2023 · 0 comments
Labels
bug a bug in one of the components

Comments

@stereobooster
Copy link

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
@stereobooster stereobooster added the bug a bug in one of the components label Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug a bug in one of the components
Projects
None yet
Development

No branches or pull requests

1 participant