aiverify-foundation / aiverify

AI Verify
https://aiverify-foundation.github.io/aiverify/
Apache License 2.0
124 stars 34 forks source link

[BUG] Build Failure with Rollup Configuration and Terser Plugin Error #278

Open yijiyap opened 7 months ago

yijiyap commented 7 months ago

Is there an existing issue for this?

Description:

I'm encountering an issue when running the setup-aiverify-dev.sh script, which executes npm run build for the shared-library, apigw, and the portal. The build process fails with errors related to circular dependencies and the Terser plugin. image image

Circular Dependencies Error:

The build process outputs warnings about circular dependencies involving d3-interpolate. This issue occurs when the script reaches the npm run build command for the shared-library.

Terser Plugin Error:

Additionally, an error is thrown by the Terser plugin during the build process, causing the build to fail. The error message indicates that the minification worker stopped with an exit code of 1.

Attempted Solution:

I attempted to resolve the issue by setting sourcemap: true in the Rollup configuration's output options. However, this led to another error as seen below. image

Current Behavior

No response

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- Operating System and Version: WSL2 Ubuntu
- Python Version: 3.11.8
- Node Version: 20.12.0

Screenshots/ Code snippets

No response

Additional Context

No response

Possible Solution (Optional)

No response

imda-benedictlee commented 7 months ago

Hi @yijiyap, thank you for reaching out to us. Can I check if you installed it via the release package or from main branch?

yijiyap commented 7 months ago

Hi Benedict, thanks for getting back so quickly! Got it from the release branch at https://github.com/IMDA-BTG/aiverify/releases v0.10.1

imda-benedictlee commented 3 months ago

Hi @yijiyap, apologies for the delay in reply. Do try it with the latest release and let me know if the issue has been resolved for you. If it has not be resolved, we can take a look at greater detail.