CenterForDigitalHumanities / DLA

Dunbar Library and Archive
0 stars 0 forks source link

TypeError: Promise.resolve is not a constructor #19

Closed cubap closed 2 years ago

cubap commented 2 years ago
TypeError: Promise.resolve is not a constructor
    at #findAssertions (entities.js:56:49)
    at entities.js:82:37

This is because of new Promise.resolve and new Promise.reject, where the new should be omitted. The error doesn't seem to actually "throw" an error, the code moves on with the Promise in these spots.

_Originally posted by @thehabes in https://github.com/CenterForDigitalHumanities/DLA/pull/15#discussion_r942865007_