Skip to content

Setup problems

BraunTom edited this page Nov 29, 2018 · 2 revisions

When we tried to use the InterpreterNan package we got the error, that the path is not correct configured. After long hours of try and error we got a solution:

  1. eject the react app
  2. set the webpack build target to electron-renderer (not electron-main and yes we settled with electron only)
  3. enable __dirname in the webpack config (in the node section)
  4. use path.resolve for finding the whole path (useful for the InterpreterNan package)

Clone this wiki locally