You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ bun test.js
125 | try {
126 | if (localFileExisted) {
127 | nativeBinding = require('./nodejs-polars.darwin-arm64.node');
128 | }
129 | else {
130 | nativeBinding = require('nodejs-polars-darwin-arm64');
^
TypeError: dlopen(/Users/luke/Developer/dataset/node_modules/nodejs-polars-darwin-arm64/nodejs-polars.darwin-arm64.node, 0x0001): symbol not found in flat namespace '_napi_fatal_exception'
at /Users/luke/Developer/dataset/node_modules/nodejs-polars/bin/native-polars.js:130:24
at /Users/luke/Developer/dataset/node_modules/nodejs-polars/bin/internals/polars_internal.js:6:27
at /Users/luke/Developer/dataset/node_modules/nodejs-polars/bin/series/series.js:7:26
at /Users/luke/Developer/dataset/node_modules/nodejs-polars/bin/index.js:24:15
at /Users/luke/Developer/dataset/test.js:1:0
I double checked and I think maybe this one may have gotten lost in the weeds. napi_fatal_exception was declared in the node_api.h header, but there was no function definition in napi.cpp, so probably whoever updated the list saw the declaration and thought it was implemented.
I went ahead and attempted an implementation that I need to test and then get feedback on. Gonna link a WIP PR now
What version of Bun is running?
0.5.6
What platform is your computer?
Darwin 22.3.0 arm64 arm
What steps can reproduce the bug?
The following script attempts to use the
nodejs-polars
package, which is the official bindings (using napi-rs) to the Polars dataframe library.The following simple script attempts to create a dataframe:
What is the expected behavior?
Using Node:
What do you see instead?
Using Bun:
Additional information
The napi tracking issue says
napi_fatal_exception
should be supported.The text was updated successfully, but these errors were encountered: