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

pnpm install package.json,run ts-node-dev, will case [Error: ENAMETOOLONG: name too long, open #340

Open
yangaihe opened this issue Oct 24, 2023 · 1 comment

Comments

@yangaihe
Copy link

Issue description

pnpm install package.json, run ts-node-dev
will case error like this

[ERROR] 17:01:05 [Error: ENAMETOOLONG: name too long, open '/var/folders/t5/17zsgxj549106dm_j201sc940000gn/T/.ts-nodeW4hELL/compiled/node_modules__pnpm_saas_fe_zeus_node_3_1_13_bos_fe_wechat_auth_3_2_1_bos_fe_wechat_common_2_1_6_request_2_88_2_saas_fe_node_jupiter_4_1_11_node_modules_saas_fe_zeus_node_dist_index_js_6388085d04795ed56f98e6c5df01c4b6ab8117170fb895107c54fe2416de3a08.js.done'] {
errno: -63,
code: 'ENAMETOOLONG',
syscall: 'open',
path: '/var/folders/t5/17zsgxj549106dm_j201sc940000gn/T/.ts-nodeW4hELL/compiled/node_modules__pnpm_saas_fe_zeus_node_3_1_13_bos_fe_wechat_auth_3_2_1_bos_fe_wechat_common_2_1_6_request_2_88_2_saas_fe_node_jupiter_4_1_11_node_modules_saas_fe_zeus_node_dist_index_js_6388085d04795ed56f98e6c5df01c4b6ab8117170fb895107c54fe2416de3a08.js.done'
}

I read ts-node-dev source code
image

after compiled, compiledPath fileName too long, case above error
compiledPath fileName as node_modules__pnpm_saas_fe_zeus_node_3_1_13_bos_fe_wechat_auth_3_2_1_bos_fe_wechat_common_2_1_6_request_2_88_2_saas_fe_node_jupiter_4_1_11_node_modules_saas_fe_zeus_node_dist_index_js_6388085d04795ed56f98e6c5df01c4b6ab8117170fb895107c54fe2416de3a08

Context

OS version (is it docker or host?), ts-node-dev version
2.0.0

Do you have a repro example (git repo) with simple steps to reproduce your problem?

@yangaihe yangaihe changed the title pnpm install package.json,will case [Error: ENAMETOOLONG: name too long, open pnpm install package.json,run ts-node-dev, will case [Error: ENAMETOOLONG: name too long, open Oct 24, 2023
@joshua-lafever
Copy link

@yangaihe did you ever find a solution to this?

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