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
i already declare LayerZero-SDK with this "const { LayerZero } require('@layerzerolabs/lz-sdk');"
but when i tried to run the code, i got this problem
EVM & Sol » node main-2.js ~/Desktop/EVM & Sol 1 ↵
file:///Users/alkindivv/Desktop/EVM%20&%20Sol/main-2.js:3
const { LayerZero } require('@layerzerolabs/lz-sdk');
^^^^^^^^^^^^^
SyntaxError: Missing initializer in destructuring declaration
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:155:18)
at callTranslator (node:internal/modules/esm/loader:285:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:291:30)
at async link (node:internal/modules/esm/module_job:76:21)
Node.js v20.10.0
The text was updated successfully, but these errors were encountered:
As for the issue you encountered with the LayerZero-SDK, it seems like there's a syntax error in the code. The correct syntax for importing the LayerZero module should be "const { LayerZero } = require('@layerzerolabs/lz-sdk');". Make sure to use the "=" sign after "LayerZero" in the destructuring declaration.
i already declare LayerZero-SDK with this "const { LayerZero } require('@layerzerolabs/lz-sdk');"
but when i tried to run the code, i got this problem
The text was updated successfully, but these errors were encountered: