maticzav / emma-cli

📦 Terminal assistant to find and install node packages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: vnode.createInstance is not a function when calling vnode.createInstance(props);

wachunei opened this issue · comments

Fresh install, running emma

~/.config/yarn/global/node_modules/emma-cli/node_modules/ink/lib/diff.js:32
                vnode.createInstance(props);
                      ^

TypeError: vnode.createInstance is not a function

Hi @wachunei 👋

Thanks for reporting the issue! What is the node version that you're using?

Hello 👋!

I'm sorry for the poor details of the issue, should have provided more info.

I'm using node v8.11.1 (Latest LTS: Carbon).

Could you provide a more detailed explanation of the issue? I tried to reproduce it but wasn't successful in doing so.

what I did:

yarn global add emma-cli
emma

screen shot 2018-05-18 at 6 16 38 pm

Hi, I have the same issue :<

Windows 10 (May update), yarn 1.7, node 10.0.0

Exactly the same error & callstack.

Steps:

  1. Clean yarn install to update it to 1.7
  2. yarn global add emma-cli and emma

Some things I tried:

  1. Quickfix: It works if I git clone https://github.com/maticzav/emma-cli/ & yarn link
  2. It still does not work if I then build it and substitute emma-cli dist in node_modules (same error)
  3. I tired updating deps (it looka like typeerror with ink and there is new ink^0.5.0, @babel/* versions are out of sync with each other and child_process dep looks depreciated), but no luck :)
  4. I tried running it on Bash/Ubuntu via Windows Subsystem for Linux and same error

Thanks for the info @vadistic! This is super helpful. If you have some spare time I would love a PR, otherwise, I'll fix it asap!

I believe this no longer affects v2