Closed albop closed 8 years ago
Hi @albop, what is the output of npm -v
?
I have:
npm --version
2.14.20
Could it just be that ansi_up
is not listed in the dependencies ? If I install it manually, it works.
Can you try pulling from master, removing node_modules from the example and building it again? I believe this should be fixed now.
@blink1073 : last pull reintroduced the bug I was seeing before https://github.com/jupyter/jupyter-js-notebook/pull/209 , i.e.,
> tsc --project src && webpack --config webpack.conf.js
src/index.ts(81,7): error TS2322: Type 'JavascriptRenderer' is not assignable to type 'IRenderer<Widget>'.
Types of property 'render' are incompatible.
Type '(mimetype: string, data: string) => Widget' is not assignable to type '(mimetype: string, data: string) => Widget'.
Type 'Widget' is not assignable to type 'Widget'.
Types of property 'layout' are incompatible.
Type 'Layout' is not assignable to type 'Layout'.
Property 'initialize' is protected but type 'Layout' is not a class derived from 'Layout'.
src/index.ts(86,54): error TS2345: Argument of type 'RenderMime<Widget>' is not assignable to parameter of type 'RenderMime<Widget>'.
Types of property 'clone' are incompatible.
Type '() => RenderMime<Widget>' is not assignable to type '() => RenderMime<Widget>'.
Type 'RenderMime<Widget>' is not assignable to type 'RenderMime<Widget>'.
I think you may still have stale files. Do you mind running git clean -dfx
from the root of the repo and running the example install instructions again?
I did try it, but I get the same error message.
Looks like I missed a dependency, should be fixed by https://github.com/jupyter/jupyter-js-notebook/pull/216.
It works now !
Great!
Running the console example produces: