node-opcua / node-opcua-crypto

node-opcua certificate tools & encryption/signature support
MIT License
5 stars 10 forks source link

Latest version is showing build error "Type 'typeof assert' has no call signatures." #6

Closed Wensh closed 4 years ago

Wensh commented 4 years ago
ERROR in \..\node_modules\node-opcua-crypto\source\derived_keys.ts
    [tsl] ERROR in \..\node_modules\node-opcua-crypto\source\derived_keys.ts(68,5)
          TS2349: This expression is not callable.
      Type 'typeof assert' has no call signatures.

It goes on for a while, for the other assert calls in node-opcua-crypto.

I tried the following in my project:

import * as assert from 'assert'; // does not work
assert('test' === 'test');
import assert from 'assert'; // works
assert('test' === 'test');
Wensh commented 4 years ago

Fixed in 1.4.4:

https://github.com/node-opcua/node-opcua/issues/886#issuecomment-709951045