-
Notifications
You must be signed in to change notification settings - Fork 435
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
grpc-web: Importing as ESModule in Node #1171
Comments
Any solutions? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Versions of relevant software used
What happened
Similar to #369, attempting to run this (named
repro.mjs
) under Node fails:with
What you expected to happen
No error.
How to reproduce it (as minimally and precisely as possible):
https://stackblitz.com/edit/stackblitz-webcontainer-api-starter-uuifs3?file=repro.js&view=editor
Run
npm run repro
It looks like building for ESM (as originally suggested in #369) and adding an
exports.import
field inpackage.json
makes it importable: https:/improbable-eng/grpc-web/compare/master...tommie:grpc-web:esm?expand=1The text was updated successfully, but these errors were encountered: