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] jsii-pacmak ERR_FS_FILE_TOO_LARGE when building #347

Closed
jstrunk opened this issue Apr 16, 2023 · 1 comment
Closed

[BUG] jsii-pacmak ERR_FS_FILE_TOO_LARGE when building #347

jstrunk opened this issue Apr 16, 2023 · 1 comment
Labels
backlog bug Something isn't working

Comments

@jstrunk
Copy link
Contributor

jstrunk commented Apr 16, 2023

Describe the bug

When using pnpm to build the package with changes, the build failed on the jsii-pacmak step with EFF_FS_FILE_TOO_LARGE. After removing my changes, the error continued. The error went away after I copied my changes onto a clean clone of the repo.

Expected Behavior

The build should have completed successfully.

Current Behavior

@aws-prototyping-sdk/pipeline: 👾 build » package » package-all » package:js | jsii-pacmak -v --target js --pack-command='pnpm pack'
@aws-prototyping-sdk/pipeline: [jsii-pacmak] [INFO] Found 1 modules to package
@aws-prototyping-sdk/pipeline: [jsii-pacmak] [INFO] Packaging NPM bundles
@aws-prototyping-sdk/pipeline: Error: Command (pnpm pack ) failed with status 1:
@aws-prototyping-sdk/pipeline: #STDERR> 
@aws-prototyping-sdk/pipeline: #STDOUT>  ERR_FS_FILE_TOO_LARGE  File size (2731119967) is greater than 2 GiB
@aws-prototyping-sdk/pipeline: #STDOUT> 
@aws-prototyping-sdk/pipeline: #STDOUT> pnpm [ERR_FS_FILE_TOO_LARGE]: File size (2731119967) is greater than 2 GiB
@aws-prototyping-sdk/pipeline: #STDOUT>     at new NodeError (node:internal/errors:399:5)
@aws-prototyping-sdk/pipeline: #STDOUT>     at tryCreateBuffer (node:fs:435:13)
@aws-prototyping-sdk/pipeline: #STDOUT>     at Object.readFileSync (node:fs:480:14)
@aws-prototyping-sdk/pipeline: #STDOUT>     at packPkg (/Users/<user>/.nvm/versions/node/v18.15.0/lib/node_modules/pnpm/dist/pnpm.cjs:211773:56)
@aws-prototyping-sdk/pipeline: #STDOUT>     at async Object.handler [as pack] (/Users/<user>/.nvm/versions/node/v18.15.0/lib/node_modules/pnpm/dist/pnpm.cjs:211734:7)
@aws-prototyping-sdk/pipeline: #STDOUT>     at async /Users/<user>/.nvm/versions/node/v18.15.0/lib/node_modules/pnpm/dist/pnpm.cjs:221644:21
@aws-prototyping-sdk/pipeline: #STDOUT>     at async main (/Users/<user>/.nvm/versions/node/v18.15.0/lib/node_modules/pnpm/dist/pnpm.cjs:221611:34)
@aws-prototyping-sdk/pipeline: #STDOUT>     at async runPnpm (/Users/<user>/.nvm/versions/node/v18.15.0/lib/node_modules/pnpm/dist/pnpm.cjs:221866:5)
@aws-prototyping-sdk/pipeline: #STDOUT>     at async /Users/<user>/.nvm/versions/node/v18.15.0/lib/node_modules/pnpm/dist/pnpm.cjs:221858:7
@aws-prototyping-sdk/pipeline: #STDOUT> 
@aws-prototyping-sdk/pipeline:     at ChildProcess.<anonymous> (/Users/<user>/Documents/code/aws-prototyping-sdk/node_modules/.pnpm/[email protected]/node_modules/jsii-pacmak/lib/util.js:175:27)
@aws-prototyping-sdk/pipeline:     at Object.onceWrapper (node:events:628:26)
@aws-prototyping-sdk/pipeline:     at ChildProcess.emit (node:events:513:28)
@aws-prototyping-sdk/pipeline:     at maybeClose (node:internal/child_process:1091:16)
@aws-prototyping-sdk/pipeline:     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
@aws-prototyping-sdk/pipeline: 👾 Task "build » package » package-all » package:js" failed when executing "jsii-pacmak -v --target js --pack-command='pnpm pack'" (cwd: /Users/<user>/Documents/code/aws-prototyping-sdk/packages/pipeline)

Reproduction Steps

I'm not sure what caused the behavior. The only change I made to projenrc was to add @aws-cdk/aws-lambda-python-alpha as a dependency to the pipeline package.

Possible Solution

@agdimech suggested deleting the dist folder in packages/aws-prototyping-sdk.

Additional Information/Context

No response

PDK version used

0.15.0

What languages are you seeing this issue on?

Typescript

Environment details (OS name and version, etc.)

MacOS 12.6.4

@jstrunk jstrunk added the bug Something isn't working label Apr 16, 2023
agdimech added a commit that referenced this issue May 2, 2023
resolve issues related to upgrading nx >= 16

BREAKING CHANGE: Deprecate uber aws-prototyping-sdk package

fix #379, #381, #347
agdimech added a commit that referenced this issue May 3, 2023
resolve issues related to upgrading nx >= 16

BREAKING CHANGE: Deprecate uber aws-prototyping-sdk package

fix #379, #381, #347
agdimech added a commit that referenced this issue May 3, 2023
resolve issues related to upgrading nx >= 16

BREAKING CHANGE: Deprecate uber aws-prototyping-sdk package

fix #379, #381, #347
agdimech added a commit that referenced this issue May 3, 2023
resolve issues related to upgrading nx >= 16

BREAKING CHANGE: Deprecate uber aws-prototyping-sdk package

fix #379, #381, #347
@agdimech
Copy link
Contributor

agdimech commented May 3, 2023

Resolved in #384

@agdimech agdimech closed this as completed May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants