[英]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.