Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: _firebasePaginator2.default is not a constructor #13

Closed
distravantari opened this issue Feb 6, 2018 · 2 comments
Closed

Comments

@distravantari
Copy link

distravantari commented Feb 6, 2018

if (isBrowser) {

I got "Uncaught TypeError: _firebasePaginator2.default is not a constructor" because of this line I guess, I change it to "(!isBrowser)" and it works

@deltaepsilon
Copy link
Owner

Haha. Good fix!

I built firebase-paginator.js to be added to the page with a script tag. I built it long before I started using Babel and ES2015 modules.

It looks like defaulting to the Node.js export was all that Babel needed to be happy.

@deltaepsilon
Copy link
Owner

I've published v1.1.2 to NPM. Let me know if the export is still causing you trouble!

3c053de

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants