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]: Error with nestjs in nodejs v22.5.x #340

Open
LancelotLewis opened this issue Jul 22, 2024 · 0 comments
Open

[Bug]: Error with nestjs in nodejs v22.5.x #340

LancelotLewis opened this issue Jul 22, 2024 · 0 comments

Comments

@LancelotLewis
Copy link
Collaborator

LancelotLewis commented Jul 22, 2024

Describe the bug

relates #338

使用 nodejs v22.5.x 版本(低于 22.5.0 版本都是正常的),nestjs 模板创建的应用会报以下错误

(2024-07-22 11:36:21): (node:59739) ExperimentalWarning: Permission is an experimental feature
(2024-07-22 11:36:21): (Use `node --trace-warnings ...` to show where the warning was created)
(2024-07-22 11:36:21): (node:59739) SecurityWarning: The flag --allow-addons must be used with extreme caution. It could invalidate the permission model.
(2024-07-22 11:36:21): (node:59739) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model.
(2024-07-22 11:36:21): (node:59739) SecurityWarning: The flag --allow-worker must be used with extreme caution. It could invalidate the permission model.
(2024-07-22 11:36:22): node:internal/errors:540
(2024-07-22 11:36:22):       throw error;
(2024-07-22 11:36:22):       ^
(2024-07-22 11:36:22): 
(2024-07-22 11:36:22): TypeError [ERR_INVALID_ARG_TYPE]: The "reference" argument must be of type string. Received an instance of Buffer
(2024-07-22 11:36:22):     at Object.has (node:internal/process/permission:25:7)
(2024-07-22 11:36:22):     at lstat (node:fs:1551:45)
(2024-07-22 11:36:22):     at _rimraf (node:internal/fs/rimraf:67:3)
(2024-07-22 11:36:22):     at rimraf (node:internal/fs/rimraf:46:3)
(2024-07-22 11:36:22):     at node:internal/fs/rimraf:145:7
(2024-07-22 11:36:22):     at Array.forEach (<anonymous>)
(2024-07-22 11:36:22):     at node:internal/fs/rimraf:142:5
(2024-07-22 11:36:22):     at FSReqCallback.oncomplete (node:fs:187:23) {
(2024-07-22 11:36:22):   code: 'ERR_INVALID_ARG_TYPE'
(2024-07-22 11:36:22): }
(2024-07-22 11:36:22): 

Reproduction Steps

blocklet create nestjs-demo
  • 选择 nestjs 模板,完成应用的创建
  • 安装依赖,执行 blockelt dev

Observed Behavior

如上

Expected Behavior

能够正常运行起来

Possible Solution

No response

Additional Information/Context

No response

@LancelotLewis LancelotLewis changed the title [Bug]: Bug title [Bug]: Error with nestjs in nodejs v22.5.x Jul 22, 2024
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