-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ TypeError: assert.strict is not a function #92
Comments
Did you mean to use > import * as assert from 'assert';
{}
> 4
4
> assert
{ fail: [Function: fail],
AssertionError: [Function: AssertionError],
ok:
{ [Function: ok]
fail: [Function: fail],
AssertionError: [Function: AssertionError],
ok: [Circular],
equal: [Function: equal],
notEqual: [Function: notEqual],
deepEqual: [Function: deepEqual],
deepStrictEqual: [Function: deepStrictEqual],
notDeepEqual: [Function: notDeepEqual],
notDeepStrictEqual: [Function: notDeepStrictEqual],
strictEqual: [Function: strictEqual],
notStrictEqual: [Function: notStrictEqual],
throws: [Function: throws],
doesNotThrow: [Function: doesNotThrow],
ifError: [Function: ifError] },
equal: [Function: equal],
notEqual: [Function: notEqual],
deepEqual: [Function: deepEqual],
deepStrictEqual: [Function: deepStrictEqual],
notDeepEqual: [Function: notDeepEqual],
notDeepStrictEqual: [Function: notDeepStrictEqual],
strictEqual: [Function: strictEqual],
notStrictEqual: [Function: notStrictEqual],
throws: [Function: throws],
doesNotThrow: [Function: doesNotThrow],
ifError: [Function: ifError],
default:
{ [Function: ok]
fail: [Function: fail],
AssertionError: [Function: AssertionError],
ok: [Circular],
equal: [Function: equal],
notEqual: [Function: notEqual],
deepEqual: [Function: deepEqual],
deepStrictEqual: [Function: deepStrictEqual],
notDeepEqual: [Function: notDeepEqual],
notDeepStrictEqual: [Function: notDeepStrictEqual],
strictEqual: [Function: strictEqual],
notStrictEqual: [Function: notStrictEqual],
throws: [Function: throws],
doesNotThrow: [Function: doesNotThrow],
ifError: [Function: ifError] } } |
yeah it was tested and also compiled with TS too, hmm, weird, which node.js version are you on? |
my guess is that you are on an old node version? node 7 does not have assert.strict, but node 8+ should. |
I was on a version of 8. Updated to 12 and still got the error. |
got it, can you copy the contents of this file on your machine
to here? |
something might be up with your node version, here is the output I get for node version 8: > assert
{ [Function: ok]
fail: [Function: fail],
AssertionError: [Function: AssertionError],
ok: [Circular],
equal: [Function: equal],
notEqual: [Function: notEqual],
deepEqual: [Function: deepEqual],
deepStrictEqual: [Function: deepStrictEqual],
notDeepEqual: [Function: notDeepEqual],
notDeepStrictEqual: [Function: notDeepStrictEqual],
strictEqual: [Function: strictEqual],
notStrictEqual: [Function: notStrictEqual],
throws: [Function: throws],
rejects: [AsyncFunction: rejects],
doesNotThrow: [Function: doesNotThrow],
doesNotReject: [AsyncFunction: doesNotReject],
ifError: [Function: ifError],
strict:
{ [Function: strict]
fail: [Function: fail],
AssertionError: [Function: AssertionError],
ok: [Circular],
equal: [Function: strictEqual],
notEqual: [Function: notStrictEqual],
deepEqual: [Function: deepStrictEqual],
deepStrictEqual: [Function: deepStrictEqual],
notDeepEqual: [Function: notDeepStrictEqual],
notDeepStrictEqual: [Function: notDeepStrictEqual],
strictEqual: [Function: strictEqual],
notStrictEqual: [Function: notStrictEqual],
throws: [Function: throws],
rejects: [AsyncFunction: rejects],
doesNotThrow: [Function: doesNotThrow],
doesNotReject: [AsyncFunction: doesNotReject],
ifError: [Function: ifError],
strict: [Circular] } }
> |
@OmgImAlexis any word on this bird? |
Now try with typescript. |
how'd it go? |
any conclusion on this one? will close o/w, pls lmk |
It was an issue. Like I said try with typescript. |
The text was updated successfully, but these errors were encountered: