What am I doing wrong?
#ES5:
require(‘urlify’).create()
#ES6 Doesn’t work:
import {create} from ‘urlify’
#node #javascript
-
-
@yoshuawuyts ⇒ babel-node > import {create} from 'urlify' 'use strict' ReferenceError: create is not defined -
@gyaresu grmmmh; have you tried `import * as foo from 'urlify'` ? Might be able to inspect what is being exported. - 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.