Not working on Node 12.13.1
mountaindude opened this issue · 2 comments
mountaindude commented
Trying the demo code on Node v12.13.1 on MacOS, failing when executed:
import Nordnet from 'nordnet'
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Module._compile (internal/modules/cjs/loader.js:895:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
at internal/main/run_main_module.js:17:11
I realise this might not be an active project these days, still wanted to report it.
fhqvst commented
Just do const Nordnet = require('nordnet')
instead.
mountaindude commented
Tried that first thing.
Meh - a computer restart solved it all. Something was messed up with my
Node.js setup.
All good now!
…On Tue, 11 Feb 2020 at 23:06, Filip Hallqvist ***@***.***> wrote:
Just do const Nordnet = require('nordnet') instead.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4?email_source=notifications&email_token=AAH3JDW2BOEDH3PC5MAGQITRCMOOJA5CNFSM4KTHZ2D2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELOIXLQ#issuecomment-584879022>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH3JDWJVT6BISV3ZCAJ3UDRCMOOJANCNFSM4KTHZ2DQ>
.