nwjs reactjs, confused about my context. Document is undefined
问题 In my nwjs application i am using React to build my UI. Currently, React is being loaded via a <script> tag in the main file, index.html. index.html has another <script> tag which loads main.js containing code which defines and renders my React components as well as requiring ( require() ) a few Node modules such as "fs" and "McFly". This all seems to be working, however when i try using another node module (react-inlinesvg) i get an error, "document is undefined". Having looked online for