Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] There are some mistakes about package conflict when built the ChatALL at windows platform. #939

Open
ZhenhongDu opened this issue Nov 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ZhenhongDu
Copy link

ZhenhongDu commented Nov 28, 2024

Describe the bug / 描述问题

When building my Electron application using npm run electron:serve, I encounter a SyntaxError: Invalid left-hand side in assignment originating from the cohere-ai package's aws-utils.js file. This error prevents the application from launching correctly. I did not change any code in the latest release version (ChatALL-1.83.108). But I expect to change some model name and build my own ChatALL.

Build error occur in cohere-ai package (version 7.14.0)

Error information in packaged electron app:

ERROR
Invalid left-hand side in assignment
SyntaxError: Invalid left-hand side in assignment
at ./node_modules/.store/[email protected]/node_modules/cohere-ai/aws-utils.js (http://localhost:8080/js/chunk-vendors.js:6361:1)
at webpack_require (http://localhost:8080/js/app.js:5457:32)
at fn (http://localhost:8080/js/app.js:5819:21)
at eval (webpack-internal:///./node_modules/.store/[email protected]/node_modules/cohere-ai/BedrockClient.js:4:21)
at ./node_modules/.store/[email protected]/node_modules/cohere-ai/BedrockClient.js (http://localhost:8080/js/chunk-vendors.js:3369:1)
at webpack_require (http://localhost:8080/js/app.js:5457:32)
at fn (http://localhost:8080/js/app.js:5819:21)
at eval (webpack-internal:///./node_modules/.store/[email protected]/node_modules/cohere-ai/index.js:28:23)
at ./node_modules/.store/[email protected]/node_modules/cohere-ai/index.js (http://localhost:8080/js/chunk-vendors.js:7241:1)
at webpack_require (http://localhost:8080/js/app.js:5457:32)

In powershell:

INFO  Launching Electron...

Set.proxySetting.normal
[19488:1128/132658.785:ERROR:web_contents_preferences.cc(240)] preload script must have absolute path.
update-electron-app config looks good; aborting updates since app is in development mode
[19488:1128/132703.838:ERROR:CONSOLE(2)] "Electron sandboxed_renderer.bundle.js script failed to run", source: node:electron/js2c/sandbox_bundle (2)
[19488:1128/132703.838:ERROR:CONSOLE(2)] "TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))", source: node:electron/js2c/sandbox_bundle (2)
[19488:1128/132704.185:ERROR:CONSOLE(1)] "Request Autofill.enable failed. {"code":-32601,"message":"'Autofill.enable' wasn't found"}", source: devtools://devtools/bundled/core/protocol_client/protocol_client.js (1)
[19488:1128/132704.185:ERROR:CONSOLE(1)] "Request Autofill.setAddresses failed. {"code":-32601,"message":"'Autofill.setAddresses' wasn't found"}", source: devtools://devtools/bundled/core/protocol_client/protocol_client.js (1)

To Reproduce / 复现步骤

Steps to reproduce the behavior:

  1. Download the latest source code version (ChatALL-1.83.108). Unzip the file.
  2. Open the Powershell in the file path
  3. npm install
  4. npm run electron:serve

platform:
win11
node.js -version: v20.5.1

I install related package using cnpm install

Expected behavior / 期望行为

Build the ChatALL app using node.js in windows

Screenshots / 截图

No response

Devtools Info / 开发者工具信息

ERROR
Invalid left-hand side in assignment
SyntaxError: Invalid left-hand side in assignment
at ./node_modules/.store/[email protected]/node_modules/cohere-ai/aws-utils.js (http://localhost:8080/js/chunk-vendors.js:6361:1)
at webpack_require (http://localhost:8080/js/app.js:5457:32)
at fn (http://localhost:8080/js/app.js:5819:21)
at eval (webpack-internal:///./node_modules/.store/[email protected]/node_modules/cohere-ai/BedrockClient.js:4:21)
at ./node_modules/.store/[email protected]/node_modules/cohere-ai/BedrockClient.js (http://localhost:8080/js/chunk-vendors.js:3369:1)
at webpack_require (http://localhost:8080/js/app.js:5457:32)
at fn (http://localhost:8080/js/app.js:5819:21)
at eval (webpack-internal:///./node_modules/.store/[email protected]/node_modules/cohere-ai/index.js:28:23)
at ./node_modules/.store/[email protected]/node_modules/cohere-ai/index.js (http://localhost:8080/js/chunk-vendors.js:7241:1)
at webpack_require (http://localhost:8080/js/app.js:5457:32)

OS and version / 操作系统版本

Windows11

ChatALL version / ChatALL 版本

1.83.108

Network / 网络

Yes

Additional context / 其它相关信息

No response

@ZhenhongDu ZhenhongDu added the bug Something isn't working label Nov 28, 2024
@ZhenhongDu ZhenhongDu changed the title [BUG] Build error occur in cohere-ai package (version 7.14.0) [BUG] There are some mistakes about package conflict when built the ChatALL at windows platform. Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant