简体   繁体   English

使用 node JS v10 开发的 React 应用

[英]React application developed using node JS v10

I have a main react application in which many other react applications have been developed.我有一个主要的反应应用程序,其中已经开发了许多其他反应应用程序。 This was developed way before I joined.这是在我加入之前开发的方式。 However, this is bothering me , because react applications keep coming in, and technically we keep building using nodejs10 to each new application.然而,这让我很困扰,因为 React 应用程序不断涌现,而且从技术上讲,我们一直在使用 nodejs10 构建每个新应用程序。 Iam overthinking ?, or something can happen in the future Can this be supported by node js?我想太多了?,或者将来会发生什么 node js 可以支持吗? I also considered updating all applications to the latest nodejs.我还考虑将所有应用程序更新到最新的 nodejs。 But I'm fearful of the damages or if this idea is even feasible to implement?但我害怕损失,或者这个想法是否可行?

From my personal experience, it's quite rare for a Node upgrade to break a React build.根据我的个人经验,Node 升级破坏 React 构建的情况很少见。 But it all depends on the complexity of the app and the packages used and how old are the dependencies.但这一切都取决于应用程序的复杂性和使用的包以及依赖项的年龄。

I wouldn't say you're overthinking, Node 10 support ended at the end of April so it would be advisable to upgrade to a more recent version.我不会说您想得太多了,Node 10 的支持已于 4 月底结束,因此建议升级到更新的版本。

I would ask the relevant person to have a couple of days to tackle the tech debt and try to upgrade Node to 16.我会请相关人员花几天时间解决技术债务问题,并尝试将 Node 升级到 16。

If you are using nvm you could switch to Node 16 using the --reinstall-packages-from command targeting your current version and try to build.如果您使用的是nvm您可以使用--reinstall-packages-from命令针对当前版本切换到 Node 16 并尝试构建。 It's going to take you a couple of minutes.这将花费您几分钟时间。

You can always switch back to 10 with a single command.您始终可以使用单个命令切换回 10。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Node.js加密PBKDF2函数在v8与v10上返回不同的值 - Node.js crypto PBKDF2 function returns different values on v8 vs v10 如何升级到 Node.js SDK Admin SDK v10(模块化 SDK)getMessaging 和 getFirestore 调用? - How to upgrade to Node.js SDK Admin SDK v10 (modular SDK) getMessaging & getFirestore calls? 解析错误:Firebase云功能中出现意外的令牌selectWinner-Node.js V10 - Parsing error: Unexpected token selectWinner in Firebase cloud function - Node.js V10 如何使用适用于 JavaScript 的 Storage SDK v10 将 Blob 从一个容器复制到节点中的另一个容器 - How to copy a blob from one container to another in node using Storage SDK v10 for JavaScript 节点 v10 事件循环中的随机因素是什么? - What is the random factor in node v10 event loop? 等待(... of ...)不起作用。 Babel 呈现环境,节点 v10 - for await (… of …) not working. Babel present env, node v10 docker 构建出现错误,检测到节点 v10,Angular CLI 需要 v12.14 或 v14.15 的最低 Node.js 版本 - docker build gives error, node v10 detected, The Angular CLI requires a minimum Node.js version of either v12.14 or v14.15 Node V10 与 Node V11 中 util.format 的行为 - Behaviour of util.format in Node V10 vs Node V11 从节点v8更改为v10时,设置process.env.tz停止工作 - setting process.env.tz stops working when changing from node v8 to v10 如何在 Node v10 的 Google Cloud Functions 中使用 ffi-napi - How to use ffi-napi in Google Cloud Functions at Node v10
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM