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

Half of the functions are not functions, but Modules, in Next.js #46

Open
james-tindal opened this issue Jan 15, 2023 · 3 comments
Open

Comments

@james-tindal
Copy link

james-tindal commented Jan 15, 2023

image

Typescript thinks the expected operators are exported, but at runtime, 7 of the exports are Modules.
Using the latest version of Next.js, which bundles with webpack.

@staltz
Copy link
Owner

staltz commented Jan 15, 2023

If this is blocking you, just use the callbag libraries directly, or send us a PR with tests.

This repo is just a lite "distro" of common callbag libraries.

@james-tindal
Copy link
Author

james-tindal commented Feb 21, 2023

Same problem using rollup. callbag-from-function is broken too, since it imports callbag-share. The modules are not packaged for esm/commonjs interoperability.

@james-tindal
Copy link
Author

Actually, it appears they are, so why this is happening is a mystery.

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