FormidableLabs / victory-native-xl

A charting library for React Native with a focus on performance and customization.
https://commerce.nearform.com/open-source/victory-native
696 stars 52 forks source link

Attempted to import the module "victory-native" which is listed in the "exports" #333

Open trevorpfiz opened 2 months ago

trevorpfiz commented 2 months ago

Is there an existing issue for this?

Code of Conduct

Victory version

41.0.2

Code Sandbox link

No response

Bug report

warning: `Attempted to import the module ".../node_modules/victory-native" which is listed in the "exports" of ".../node_modules/victory-native", however no match was resolved for this request (platform = ios). Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API.`

usage:
`import { CartesianChart, Line, useChartPressState } from "victory-native";`

Steps to reproduce

1. Install `"victory-native": "^41.0.2"`
2. Use the library
3. See warning

Expected behavior

I would expect there to be no error on the module resolution.

Actual behavior

image

Environment

- Device: Desktop
- OS: Ubuntu 20.04.6 LTS
- Node: v20.16.0
- pnpm: 9.6.0
- npm: 10.8.1
ElevenMou commented 3 weeks ago

Did you found a solution yet?

trevorpfiz commented 3 weeks ago

Did you found a solution yet?

I did not