elixir-nodejs icon indicating copy to clipboard operation
elixir-nodejs copied to clipboard

Using elixir-nodejs

Open nitishymtpl opened this issue 2 years ago • 2 comments

Hi, I am having difficulty configuring elixir-nodeJS.

Here is what, I did in Application.ex.

%{ id: NodeJS, start: {NodeJS, :start_link, [[path: "/workspace/lib/keila/JS", pool_size: 4]]} }

In demos.ex

defmodule Keila.Demos do import NodeJS def add_and_print do result = NodeJS.call("echo", ["hello"]) #=> {:ok, "hello"} IO.puts "The sum is #{result}" end end

But the error is coming as:

iex(1)> c("demos.ex")

== Compilation error in file demos.ex == ** (CompileError) demos.ex:2: module NodeJS is not loaded and could not be found

** (CompileError) compile error (iex 1.14.4) lib/iex/helpers.ex:204: IEx.Helpers.c/2 iex:1: (file)

nitishymtpl avatar May 06 '23 11:05 nitishymtpl

yeah, good question. this repo is abandoned.

ndrean avatar Aug 27 '23 08:08 ndrean