execjs
execjs copied to clipboard
Run JavaScript code from Elixir
``` iex(2)> Execjs.eval("const aaa = require('aaa')") ** (Execjs.RuntimeError) TypeError: require is not a function lib/execjs.ex:90: Execjs.extract_result/1 lib/execjs.ex:55: Execjs.exec/1 ```
I got following error in heavy traffic environment. Reason is System.monotonic_time() time can be same for many requests. %File.Error{action: "write to file", path: "C:\\Users\\ARUNAA~1\\AppData\\Local\\Temp/execjs-64712370.js", reason: :eexist} Issue resolved with following...
My deps look like this: ``` defp deps do [cowboy: "~> 1.0", plug: "~> 1.0", poison: "~> 3.1", execjs: "~> 1.1.3"] end ``` when I try deps.get I'm getting ```...
Hello Mr Devinus, I have used your library with some good effect in a proof of concept project at https://github.com/robotarmy/serve_elm. I wonder if you would consider discussing these changes and...
I'm currently looking at trying to use this library to add javascript as a contracting language to the [UltraDark Blockchain](https://github.com/ultradark/ultradark), and I've gotten it to fit quite nicely! The one...
Adding console.log to the javascript breaks the code. function update(request) { console.log("testing"); return request; } [error] GenServer #PID terminating *\* (Poison.SyntaxError) Unexpected token: t (poison) lib/poison/parser.ex:56: Poison.Parser.parse!/2 (poison) lib/poison.ex:83: Poison.decode!/2...