我在React(CSR)中有一个现有的客户端应用程序。 2018-12-11 06:54:31.181 INFO 9384 --- [Context Cleaner] org.apache.spark.ContextCleaner : Cleaned accumulator 1389
2018-12-11 06:54:31.181 INFO 9384 --- [Context Cleaner] org.apache.spark.ContextCleaner : Cleaned accumulator 1440
2018-12-11 06:54:31.181 INFO 9384 --- [er-event-loop-0] o.apache.spark.storage.BlockManagerInfo : Removed broadcast_58_piece0 on SEVEN-PC:64179 in memory (size: 2.0 KB, free: 8.8 GB)
2018-12-11 06:54:31.181 INFO 9384 --- [Context Cleaner] org.apache.spark.ContextCleaner : Cleaned accumulator 1511
2018-12-11 06:54:31.181 INFO 9384 --- [Context Cleaner] org.apache.spark.ContextCleaner : Cleaned accumulator 1428
2018-12-11 06:54:31.181 INFO 9384 --- [Context Cleaner] org.apache.spark.ContextCleaner : Cleaned accumulator 1348
2018-12-11 06:54:31.181 INFO 9384 --- [Context Cleaner] org.apache.spark.ContextCleaner : Cleaned accumulator 1456
现在,还有另一个库需要在节点中提供服务器端功能。我不想仅将当前的CSR转换为SSR,以便可以使用该库。不幸的是,当我尝试使用target: web
时,整个构建过程中断了,并且在构建时给了我很多错误。我认为这是因为它期望在构建时所有可用的组件都找不到。我也不认为这是正确的方法(出于上述原因)。
有人知道如何拥有应用服务器端的某些组件并在客户端驻留吗?有指针吗?
谢谢