Symbol not found in flat namespace '_napi_create_error'

I use monorepo structure which contains a rust binary and a napi-rs lib

but recently I rebuild this project, get the error

symbol not found in flat namespace '_napi_create_error'

is there anybody can help me with this?

Can you reduce your code and project to a minimal working example that demonstrates the issue?

FYI: the initial napi-rs project's crate-type is cdylib, but cdylib can't be linked, so I added rlib

resolved: symbol not found in flat namespace '_napi_create_error' · Issue #1818 · napi-rs/napi-rs · GitHub

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.