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

@shopify/polaris-viz-native crashes with unrecognized selector sent to instance error #1639

Closed
markmssd opened this issue Mar 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@markmssd
Copy link

Bug summary

Screenshot 2024-03-18 at 5 12 12 PM

Expected behavior

It should load the chart properly.

Actual behavior

The app crashes instead.

Exception thrown while executing UI block: -[__NSArrayM objectForKeyedSubscript:]: unrecognized selector sent to instance 0x600018e30f90

__44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke
RCTUIManager.m:1211
__44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke_2
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_drain
_dispatch_main_queue_callback_4CF
CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start_sim
0x0
0x0

Steps to reproduce the problem

I am simply installing (yarn add @shopify/polaris-viz-native) in a brand new Expo app (managed), and this is happening. I also installed react-native-svg which seemed required.

Specifications

  System:
    OS: macOS 14.4
    CPU: (10) arm64 Apple M1 Max
    Memory: 189.45 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
    Yarn: 1.22.21 - ~/.nvm/versions/node/v20.11.0/bin/yarn
    npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm
    pnpm: 7.28.0 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 122.0.6261.129
    Safari: 17.4
  npmPackages:
    @shopify/polaris-viz-native: 11.0.0 => 11.0.0 
    react: 18.2.0 => 18.2.0 
@markmssd markmssd added the bug Something isn't working label Mar 18, 2024
@markmssd
Copy link
Author

Closing as #1613 (comment) fixed it. react-native-viz should be included as a peer dependency instead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant