Error when constructing guify instance
fdb opened this issue · 4 comments
fdb commented
I'm just getting started with guify, but I run into an issue when using the npm version. The default export is not a constructor:
All I'm doing is this:
import guifiy from "guify";
const gui = new guifiy();
And I get the error _guify.default is not a constructor
.
Here's a demonstration of the bug:
https://codesandbox.io/s/eloquent-williams-vlqze?file=/src/index.js
This is using guify 0.15.1, the last version as of now.
colejd commented
Hi there! I'll see if I can repro, but my gut is telling me this is because you're spelling guify wrong (guifiy
), so you're importing a function that isn't defined by the library.
fdb commented
muzmich commented
Doesn't work for me as well. Tho
import { guify } from 'guify';
//or
const { guify } = require('guify');
works fine
daledesilva commented
Thanks @muzmich . You saved me.
Turns out the docs specify that import line wrong.