Closed coveritytest closed 2 years ago
Add "type": "module"
to your package.json
{
"name": "Wikifolio Example",
"version": "1.0.0",
"description": "",
"main": "index.js",
+ "type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"wikifolio": "^0.3.3"
}
}
- import Api from 'wikifolio'
+ import { Api } from 'wikifolio'
const api = new Api({email: 'example@riennevaplus.de', password: 'examplepassword1337'})
Thanks a lot, @jekru!
I have some issues to get this running. I'm new to nodejs, so maybe I'm doing something wrong here. That's what I do on Ubuntu:
Some sort of import error, but I don't know what I'm missing.