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
import {machineIdSync} from 'node-machine-id';
^^^^^^^^^^^^^
SyntaxError: The requested module 'node-machine-id' does not provide an export named 'machineIdSync'
In order to make it working, I import the module and then use default object to call exported function:
import ClientUtility from 'node-machine-id';
...
ClientUtility.machineIdSync({original: true})
My environment is node 13, so I'm using modules.
Is it possibile to import without default, or this is the right way to use it?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi!
I'm using your code, but I get this error
In order to make it working, I import the module and then use default object to call exported function:
My environment is node 13, so I'm using modules.
Is it possibile to import without default, or this is the right way to use it?
Thanks!
The text was updated successfully, but these errors were encountered: