Open therealsujitk opened 1 year ago
Update to 2.0.2. It was fixed.
@EvanZhouDev are you sure? I just tested it and I still get the error.
Are you on 2.0.2? It should be fixed in #51
I am on 2.0.2, building still gives the same error.
npm i bard-ai@2.0.2
Very strange... I'll have a look at this in a little bit
May I see your code? It seems to be that you're trying to use a NodeJS-only feature in the browser. Importingbard-ai
v2.0.2 seems to be fine
@ThatXliner sorry for the late response, was a bit busy. This is the code that uses the bard-ai
package. The build works when I comment out all of this code including the import statement. Even adding the import alone causes the build to fail with bard-ai@2.0.3
.
@ThatXliner sorry for the late response, was a bit busy. This is the code that uses the
bard-ai
package. The build works when I comment out all of this code including the import statement. Even adding the import alone causes the build to fail withbard-ai@2.0.3
.
same issue here, creating basic code put in github page also is causing error
Also facing same issue
same issue face in use in next js
same problem angular 17
Prerequisites
bard-ai
Bug Description
This happens when I try to build my chrome extension that uses this package.
Reproduction Steps
fs
cannot be imported because it is a server-side module, so it'll throw some kind of error.Other information
No response
Occurance Rate
I can reproduce this bug 100% of the time.