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
and i did the same for the Long.js
it all went well except 2 warnings
when i try to execute the following code
var bb = new ByteBuffer()
.writeIString("Hello world!")
.flip();
console.log( "base 64 encoding of the buffer: " + bb.toBase64() );
var bb = ByteBuffer.allocate(2, false, false);
I am getting the following two warnings:
WARNING in ./ts/app.ts
18:9-28 "export 'allocate' (imported as 'ByteBuffer') was not found in '../definitions/ByteBuffer'
@ ./ts/app.ts
@ multi ./ts/app.ts ./ts/app.ts
WARNING in ./definitions/ByteBuffer.js
Module not found: Error: Can't resolve 'long' in '/home/tito/Projects/external/definitions'
@ ./definitions/ByteBuffer.js 30:35-50
@ ./ts/app.ts
@ multi ./ts/app.ts ./ts/app.ts
if I comment those lines below then the second warning about the long is gone i guess this is the same behaviour explained in the ticket number (#47 opened on May 8, 2015 by jcalfee)
However i do not know what to do with the first warring why is typescript sayng that "export 'allocate' was not found. I guess this have to do with the fact that ByteBuffer.js is ready to be consumed as CommonJS and AMD module but somehow i am missing the es6 modules exports, but i might be wrong. Any ideas about this?
The text was updated successfully, but these errors were encountered:
I am trying to use the ByteBuffer.js in typescript. I have downloaded the typescript definitions i.e. the index.d.ts from
here
and i did the same for the Long.js
it all went well except 2 warnings
when i try to execute the following code
I am getting the following two warnings:
if I comment those lines below then the second warning about the long is gone i guess this is the same behaviour explained in the ticket number (#47 opened on May 8, 2015 by jcalfee)
However i do not know what to do with the first warring why is typescript sayng that "export 'allocate' was not found. I guess this have to do with the fact that ByteBuffer.js is ready to be consumed as CommonJS and AMD module but somehow i am missing the es6 modules exports, but i might be wrong. Any ideas about this?
The text was updated successfully, but these errors were encountered: