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] Build Failure with Rollup Configuration and Terser Plugin Error #278

Open
1 task done
yijiyap opened this issue Apr 1, 2024 · 3 comments
Open
1 task done
Assignees
Labels
bug Something isn't working needs-triage Issues need triages by maintainer

Comments

@yijiyap
Copy link

yijiyap commented Apr 1, 2024

Is there an existing issue for this?

  • I have searched the existing issues

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

@yijiyap yijiyap added bug Something isn't working needs-triage Issues need triages by maintainer labels Apr 1, 2024
@imda-benedictlee
Copy link
Contributor

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
Copy link
Author

yijiyap commented Apr 2, 2024

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issues need triages by maintainer
Projects
None yet
Development

No branches or pull requests

3 participants