Skip to content

fetch linker error on macOS ARM64 with perry-react — _js_fetch_with_options not found #5

Description

@tomkennedy22

Howdy, opening a second issue of the night - which I think is distinct from #4

Saw in #3 that fetch is supposed to work natively without --enable-js-runtime. Tried it on macOS ARM64 using perry-react and got a linker error instead:

useEffect(() => {
  fetch("https://wttr.in/Chicago?format=3")
    .then(res => res.text())
    .then(text => setData(text))
}, [])
Undefined symbols for architecture arm64:
  "_js_fetch_with_options", referenced from:
      ___closure_1 in react_test_src_main_tsx.o
ld: symbol(s) not found for architecture arm64
Error: Linking failed

Seems like _js_fetch_with_options isn't making it into the linked binary on macOS. Could be a perry-react specific issue since the native stdlib isn't getting pulled in the same way. macOS ARM64, built from source.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions