CloudBranch
CloudBranch

Reputation: 1604

ES 2015 Import all using asterisk

I'm implementing node-casbin in my project. I tried importing everything into my project using the code below.

import * as casbin from 'casbin';

When I save my Node.js server crashes with the error below.

import * as casbin from 'casbin';
       ^

SyntaxError: Unexpected token *

Upvotes: 1

Views: 384

Answers (0)

Related Questions