Is there anyway around this, or do I just need to remove this mastodon SDK and find another

skymtf@pricefield.org to Transprogrammer@lemmy.blahaj.zone – 4 points –

Error [ERR_REQUIRE_ESM]: require() of ES Module /home/sky/Documents/hourlypets/node_modules/tsl-mastodon-api/lib/index.js from /home/sky/Documents/hourlypets/src/mastodon.ts not supported. Instead change the require of index.js in /home/sky/Documents/hourlypets/src/mastodon.ts to a dynamic import() which is available in all CommonJS modules. I am a bit confused, I did attempt to try to change from CommonJS to something else it broke my other modules I am using.

0

No comments yet. You could be first!