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

Using ts-node main branch as a dependency fails on GitHub Actions with pnpm #2069

Open
WankkoRee opened this issue Sep 23, 2023 · 0 comments

Comments

@WankkoRee
Copy link

WankkoRee commented Sep 23, 2023

Search Terms

pnpm ERR_PNPM_PREPARE_PACKAGE prepack TS2742 macroReplNoErrorsAndStdoutContains macroReplStderrContains @cspotcode/ava-lib

Expected Behavior

install github:TypeStrong/ts-node#main as a dependency successfully.

Actual Behavior

install github:TypeStrong/ts-node#main as a dependency failed.

...1816_0fa4b34047b2a870b11744b3f7556d5f prepack$ node ./scripts/prepack.mjs
...1816_0fa4b34047b2a870b11744b3f7556d5f prepack: > ts-node@10.9.1 prepack-worker /home/runner/setup-pnpm/node_modules/.bin/store/v3/tmp/_tmp_1816_0fa4b34047b2a870b11744b3f7556d5f
...1816_0fa4b34047b2a870b11744b3f7556d5f prepack: > rimraf temp dist tsconfig.schema.json tsconfig.schemastore-schema.json tsconfig.tsbuildinfo tests/ts-node-packed.tgz tests/node_modules tests/tmp && tsc -b ./tsconfig.build-dist.json && typescript-json-schema --topRef --refs --validationKeywords allOf --out tsconfig.schema.json tsconfig.build-schema.json TsConfigSchema && node --require ./register ./scripts/create-merged-schema
##[debug]Dropping file value '/home/runner/work/action-runner-test/action-runner-test/...1816_0fa4b34047b2a870b11744b3f7556d5f prepack: src/test/repl/helpers/macros.ts'. Path does not exist
Error: ...1816_0fa4b34047b2a870b11744b3f7556d5f prepack: src/test/repl/helpers/macros.ts(4,14): error TS2742: The inferred type of 'macroReplNoErrorsAndStdoutContains' cannot be named without a reference to '.bin/store/v3/tmp/_tmp_1816_0fa4b34047b2a870b11744b3f7556d5f/node_modules/@cspotcode/ava-lib'. This is likely not portable. A type annotation is necessary.
##[debug]Dropping file value '/home/runner/work/action-runner-test/action-runner-test/...1816_0fa4b34047b2a870b11744b3f7556d5f prepack: src/test/repl/helpers/macros.ts'. Path does not exist
Error: ...1816_0fa4b34047b2a870b11744b3f7556d5f prepack: src/test/repl/helpers/macros.ts(9,14): error TS2742: The inferred type of 'macroReplStderrContains' cannot be named without a reference to '.bin/store/v3/tmp/_tmp_1816_0fa4b34047b2a870b11744b3f7556d5f/node_modules/@cspotcode/ava-lib'. This is likely not portable. A type annotation is necessary.
...1816_0fa4b34047b2a870b11744b3f7556d5f prepack:  ELIFECYCLECommand failed with exit code 2.
...1816_0fa4b34047b2a870b11744b3f7556d5f prepack: FailedERR_PNPM_PREPARE_PACKAGEFailed to prepare git-hosted package fetched from "https://codeload.github.com/TypeStrong/ts-node/tar.gz/0eb980f2b7e86801eca76782a323f7ad696784ab": ts-node@10.9.1 prepack: `node ./scripts/prepack.mjs`
Exit status 1
Error: Process completed with exit code 1.

Steps to reproduce the problem

I install dependencies in my computer with no problem. But there is some errors on GitHub Actions.

https://github.com/WankkoRee/action-runner-test/actions/runs/6283895211/job/17064801621

Minimal reproduction

https://github.com/WankkoRee/action-runner-test

Specifications

GitHub Actions runner 2.309.0 with Node.js 18.17.1 and pnpm 8.7.6

@WankkoRee WankkoRee changed the title Using ts-node main branch as a dependency fails on pnpm Using ts-node main branch as a dependency fails on GitHub Actions with pnpm Sep 23, 2023
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

1 participant