sebi2k1 / node-can

NodeJS SocketCAN extension
221 stars 72 forks source link

Seems not to work with node-js 22 #136

Open MyHomeMyData opened 3 days ago

MyHomeMyData commented 3 days ago

I'm using socketcan in ioBroker adapter e3oncan. Now I added node-js 22.x to the test-matrix. Test fails for socketcan, pls. have a look to the log: https://github.com/MyHomeMyData/ioBroker.e3oncan/actions/runs/10885244181/job/30202383332

According to user ioBroker-Discord of ioBroker Telegram channel it seems to be a referencing problem to nan.h nan 2.20 includes support for node 22, but referenced is nan 2.19 which does not support node 22.

juleq commented 2 days ago

From what I see it looks like an issue upstream:

https://github.com/nodejs/nan/issues/936

Could be wrong but there are suggestions to a workaround you could try to confirm.