Tuesday, 22 September 2020

Can someone please eli5 why some Node modules are not compatible with React?

Today I noticed a Node module I needed only worked when I imported it in the server-side backend code (pure node application). It would throw errors when I tried to important it in a frontend React component (error said something about webpack idk). But some modules (e.g. axios) works in both scenarios.What caused this compatibility / incompatibility of node modules? What's the mechanism behind it?

Submitted September 23, 2020 at 06:35AM by delsinz

No comments:

Post a Comment