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 #185

Closed
stereobooster opened this issue Sep 2, 2023 · 0 comments
Closed

Can't use with Vite #185

stereobooster opened this issue Sep 2, 2023 · 0 comments
Assignees

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.

Steps to reproduce the behaviour:

Reproduction in this example https://github.com/stereobooster/vite-rnw/tree/main/v-react-native-magnus.

pnpm i
pnpm run dev

Errors look like this:

✘ [ERROR] No matching export in "node_modules/.pnpm/react-native-magnus@1.0.63_react-native-animatable@1.3.3_react-native-modal@13.0.1_react-nati_gv7bi4drq2pctmvofdenfgcryy/node_modules/react-native-magnus/lib/module/theme/theme.provider.js" for import "ThemeProviderProps"

    node_modules/.pnpm/react-native-magnus@1.0.63_react-native-animatable@1.3.3_react-native-modal@13.0.1_react-nati_gv7bi4drq2pctmvofdenfgcryy/node_modules/react-native-magnus/lib/module/theme/index.js:3:24:
      3 │ export { ThemeProvider, ThemeProviderProps } from './theme.provider';
        ╵                         ~~~~~~~~~~~~~~~~~~

Important Details

  • Version: ^1.0.63
  • OS: MacOSX
  • Browser: irrelevant because it fails at bundler level
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants