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

feat(nodejs): cat 支持node12+以上版本编译 #2308

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xcyn
Copy link

@xcyn xcyn commented Aug 22, 2023

在nestjs使用中node16+以上版本中使用cat发现编译报错。
后发现社区有类似问题还未解决,参考: #2140
尝试编译官方版本只能支持到node12以内。

问题原因:
项目中使用早期的 V8 API 来操作 JavaScript 对象。
在 Node.js 13 后,由于 V8 的 API 更新,某些早期的方法不再有效或需要调整。

解决方案:
使用条件编译指令对语法进行处理。

@xcyn xcyn changed the title feat: cat 支持node12+以上版本编译 feat(node): cat 支持node12+以上版本编译 Aug 22, 2023
@xcyn xcyn changed the title feat(node): cat 支持node12+以上版本编译 feat(nodejs): cat 支持node12+以上版本编译 Aug 22, 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

Successfully merging this pull request may close these issues.

None yet

1 participant