lpgera / dirigera

An unofficial TypeScript client library for IKEA's DIRIGERA smart home hub
https://www.npmjs.com/package/dirigera
MIT License
47 stars 2 forks source link

Add Nuxt Support #3

Closed Kae-Tempest closed 6 months ago

Kae-Tempest commented 6 months ago

Hello,

Can you add Nuxt support for the moment i can't use dirigera libs on Nuxt app because os.networkInterfaces is not a function`

image image

Kae-Tempest commented 6 months ago

If we add GatewayIP have these error..

image image

lpgera commented 6 months ago

Hi @Kae-Tempest!

I'm not an expert in Nuxt, but to me it looks like you're trying to use dirigera in the browser which is not supported. You should limit the library usage to the server-side Node.js environment and it should work fine.

I'm closing this issue for now, but let me know if my assumption is wrong and you have other indicators that the error is indeed in the library code.