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 { LibraClient, LibraNetwork } from 'libra-core'
causes an error for me when used i angular. The error is:
index.js:3 Uncaught TypeError: Cannot read property '_handle' of undefined at index.js:3 at Array.forEach (<anonymous>) at module.exports (index.js:2) at Object.<anonymous> (log.js:11) at Object.213._process (log.js:310) at o (_prelude.js:1) at _prelude.js:1 at Object.<anonymous> (napi.js:5) at Object.211._process (napi.js:204) at o (_prelude.js:1)
Seems to be: if (stream._handle && stream.isTTY && typeof stream._handle.setBlocking === 'function')
causing the issue.
When using require with node I receive an Unexpected Identifier error when trying to require the package.
The text was updated successfully, but these errors were encountered:
I believe the problem is that to use grpc for the web you need to use the grpc-web package instead of grpc, which appears to be a somewhat different interface.
The following line
import { LibraClient, LibraNetwork } from 'libra-core'
causes an error for me when used i angular. The error is:
index.js:3 Uncaught TypeError: Cannot read property '_handle' of undefined at index.js:3 at Array.forEach (<anonymous>) at module.exports (index.js:2) at Object.<anonymous> (log.js:11) at Object.213._process (log.js:310) at o (_prelude.js:1) at _prelude.js:1 at Object.<anonymous> (napi.js:5) at Object.211._process (napi.js:204) at o (_prelude.js:1)
Seems to be:
if (stream._handle && stream.isTTY && typeof stream._handle.setBlocking === 'function')
causing the issue.
When using require with node I receive an
Unexpected Identifier error
when trying to require the package.The text was updated successfully, but these errors were encountered: