NaturalSelectionLabs / RSS3-SDK-for-JavaScript

⚠️ DEPRECATED
48 stars 5 forks source link

Uncaught TypeError: RSS3 is not a constructor #6

Closed t-900-a closed 2 years ago

t-900-a commented 2 years ago

Applies to package version - "rss3": { "version": "0.3.11"}

Minimum viable code example using node16

const RSS3 = require('rss3');

const endpoint = 'https://prenode.rss3.dev';

const privateKey = '24b23bbba6cfa4013xxxxxxxxxx';

const rss3 = new RSS3({endpoint,privateKey});

Error message

Uncaught TypeError: RSS3 is not a constructor

t-900-a commented 2 years ago

fix

const RSS3 = require('rss3').default;

https://github.com/NaturalSelectionLabs/RSS3-Wiki/pull/4