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

Build Optimization Error with ton Package in Angular Dapp #33

Open
DanialV opened this issue May 21, 2024 · 1 comment
Open

Build Optimization Error with ton Package in Angular Dapp #33

DanialV opened this issue May 21, 2024 · 1 comment

Comments

@DanialV
Copy link

DanialV commented May 21, 2024

Description:
I am encountering an issue with the ton package when building my Angular Dapp for production with build optimization enabled. The package works perfectly in the development environment, but the following error occurs during the production build:

Cell.js:107 Uncaught TypeError: Cannot read properties of undefined (reading 'Ordinary')
    at new ie (Cell.js:107:40)
    at 9786 (Cell.js:207:14)
    at r (bootstrap:19:1)
    at 121 (Builder.js:12:16)
    at r (bootstrap:19:1)
    at 1665 (contractAddress.js:11:19)
    at r (bootstrap:19:1)
    at 5230 (index.js:33:25)
    at r (bootstrap:19:1)
    at 2971 (index.js:25:14)

Steps to Reproduce:

Integrate the ton package into an Angular project.
Ensure everything works correctly in the development environment.
Build the project for production with build optimization enabled using the Angular CLI command: ng build --prod --optimization.
Expected Behavior:
The project should build successfully without any errors and work as expected in the production environment.

Actual Behavior:

The build process fails with the above-mentioned error, indicating an issue related to undefined properties in Cell.js.

Environment:

Angular version: 14.2.12
ton package version: 13.11.1
Node.js version: 18
OS: MacOs
Additional Information:
Any other relevant information or configurations that might help in diagnosing the issue.

Request:

I would appreciate any guidance or fixes to resolve this issue so that the ton package works seamlessly with Angular's production build optimizations.

Thank you!

puzzle-rusher pushed a commit to puzzle-rusher/ton that referenced this issue Jun 27, 2024
Fix exitCode to use a signed integer
@shariquex
Copy link

Hi team any update on solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants