Closed arliber closed 7 years ago
Use const wiki = require('wikijs').default
I do not believe Node v6 has import
yet. Possibly v7 has them. And you can always use them with Babel.
I second @dijs statement
I'm sure there is a way to compile the library where ES6 import
s AND require
can be used interchangeably, but I have not had time to research that yet...
If someone would like to figure that out, I would be more than happy to implement it.
Hi, I'd love to use wiki from Node 6.9 but since it doesn't support
import
I tried to userequire
instead.Unfortunately, I got an error
wiki is not a function
.I also tried
wiki.page
but got'wiki.page'
is not a function.Does it strictly require next node version? Thanks