Calling Node.js script from Rails app using ExecJS

后端 未结 4 557
遥遥无期
遥遥无期 2021-01-04 11:57

I have a Rails application that needs to run a node script. I imagine that using the ExecJS gem is the cleanest way to run JavaScript from a Rails app. However, so far, Exec

4条回答
  •  孤街浪徒
    2021-01-04 12:42

    It's erroring out because require() is not supported by EvalJS. 'require' is undefined, and undefined is not a function. ;)

提交回复
热议问题