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.
Hi, I have the same issue :<
Windows 10 (May update), yarn 1.7, node 10.0.0
Exactly the same error & callstack.
Steps:
- Clean yarn install to update it to 1.7
yarn global add emma-cli
andemma
Some things I tried:
- Quickfix: It works if I
git clone https://github.com/maticzav/emma-cli/
&yarn link
- It still does not work if I then build it and substitute emma-cli dist in node_modules (same error)
- I tired updating deps (it looka like typeerror with
ink
and there is newink^0.5.0
,@babel/*
versions are out of sync with each other andchild_process
dep looks depreciated), but no luck :) - 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