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

Support for Next.js #13

Closed
lucassaid opened this issue Jan 21, 2021 · 2 comments
Closed

Support for Next.js #13

lucassaid opened this issue Jan 21, 2021 · 2 comments

Comments

@lucassaid
Copy link

lucassaid commented Jan 21, 2021

Hello! I'm trying to make this work with Next.js, but unfortunately it doesn't support ES modules yet, so I'm getting this error:

import { useTransactionObservation_UNSTABLE } from 'recoil'
^^^^^^

SyntaxError: Cannot use import statement outside a module

I would love to help you adding support for CommonJS. I'm actually trying to make it work following this guide (option 4) but with no success so far. Can you tell me if I'm in the good path?

Thanks a lot for your attention and for this package!

@polemius
Copy link
Owner

I have used this library to publish CommonJS + ES modules library. I have published it as 1.0.0 release.

@lucassaid
Copy link
Author

Worked like a charm. Thanks!

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