PawanOsman / GoogleBard

GoogleBard - A reverse engineered API for Google Bard chatbot for NodeJS
https://bard.google.com
MIT License
415 stars 57 forks source link

How do I import this without ESM? #2

Closed Helvio88 closed 1 year ago

Helvio88 commented 1 year ago

I can't import on my code that's running as CommonJS. Everything else can't just be converted. Any ideas?

freeza-inc commented 1 year ago

Would also like to know how

PawanOsman commented 1 year ago

CommonJS isn't supported currently

Helvio88 commented 1 year ago

I'll take a quick and dirty workaround if you have one lol

Erisfiregamer1 commented 1 year ago

dynamic import(), keep in mind you'll have to wrap your code in an async function :(

stretch07 commented 1 year ago

dynamic import(), keep in mind you'll have to wrap your code in an async function :(

isnt top level await supported