You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my local checkout, chie@^0.2.0 was resolved to version 0.2.4 (although I don't see a v0.2.4 tag in the chie repo):
chie@^0.2.0:
version "0.2.4"
resolved "https://registry.yarnpkg.com/chie/-/chie-0.2.4.tgz#b5731eb526553fe07d75039b38dbe1e61f28520e"
integrity sha512-QOx5vMiNOrCbZ7A2eI6XKM8IxF1U3DxdgQOSVZqsq/ESL5u+95JZCS/TK2105lFQgFrfEy74MzOVB5AVMj4AFw==
This causes the build to fail, with src/google-bard.ts failing to find APICredential from chie as it was not exported under this name at that time:
$ yarn build
yarn run v1.22.19
warning package.json: No license field
$ tsc
src/google-bard.ts:2:3 - error TS2305: Module '"chie"' has no exported member 'APICredential'.
2 APICredential,
~~~~~~~~~~~~~
src/google-bard.ts:51:43 - error TS2339: Property 'credential' does not exist on type 'GoogleBard'.
51 const url = new URL(apiEndpoint, this.credential.url);
~~~~~~~~~~
src/google-bard.ts:80:39 - error TS2339: Property 'credential' does not exist on type 'GoogleBard'.
80 const response = await fetch(this.credential.url, {
~~~~~~~~~~
src/google-bard.ts:98:20 - error TS2339: Property 'credential' does not exist on type 'GoogleBard'.
98 Origin: this.credential.url,
~~~~~~~~~~
src/google-bard.ts:99:21 - error TS2339: Property 'credential' does not exist on type 'GoogleBard'.
99 Referer: this.credential.url,
~~~~~~~~~~
src/google-bard.ts:100:20 - error TS2339: Property 'credential' does not exist on type 'GoogleBard'.
100 Cookie: this.credential.cookie,
~~~~~~~~~~
Found 6 errors in the same file, starting at: src/google-bard.ts:2
error Command failed with exit code 2.
Changing the dependency to chie@^0.2.9 in package.json addresses the issue, I was able to build the extension after making this change and all errors went away.
Best of luck for the launch!
The text was updated successfully, but these errors were encountered:
Hello,
package.json
currently defines the dependency forchie
aschie-extension-bard/package.json
Line 14 in 872cb21
On my local checkout,
chie@^0.2.0
was resolved to version0.2.4
(although I don't see av0.2.4
tag in thechie
repo):This causes the build to fail, with
src/google-bard.ts
failing to findAPICredential
fromchie
as it was not exported under this name at that time:Changing the dependency to
chie@^0.2.9
inpackage.json
addresses the issue, I was able to build the extension after making this change and all errors went away.Best of luck for the launch!
The text was updated successfully, but these errors were encountered: