PeculiarVentures/webcrypto-local

E6 module error: protobuf is not defined

Closed this issue · 2 comments

I want to use E6 module instead of getting js from urls.

import WebcryptoSocket from '@webcrypto-local/client';
const ws = new WebcryptoSocket.SocketProvider({
storage: await WebcryptoSocket.BrowserStorage.create(),
});

gives me protobuf is not defined error. What should I do?

Screen Shot 2020-01-28 at 14 31 23

Include protobuf package?

<script src="https://cdn.rawgit.com/dcodeIO/protobuf.js/6.8.0/dist/protobuf.min.js" defer></script>

https://www.npmjs.com/package/protobufjs

Didn't notice. Thank you!