Skip to content
New issue

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

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

Already on GitHub? # to your account

[Bug] Cannot use stream plugin with elysia-polyfills (Node) #5

Open
lnfel opened this issue Nov 21, 2023 · 0 comments · May be fixed by #13
Open

[Bug] Cannot use stream plugin with elysia-polyfills (Node) #5

lnfel opened this issue Nov 21, 2023 · 0 comments · May be fixed by #13

Comments

@lnfel
Copy link

lnfel commented Nov 21, 2023

.pnpm/@elysiajs+stream@0.7.2_elysia@0.7.29/node_modules/@elysiajs/stream/dist/index.js:1
import { nanoid } from 'nanoid';
^^^^^^

SyntaxError: Cannot use import statement outside a module
Node.js v18.14.2

While Bun supports both es6 module and commonjs, node is stuck on using only one or the other. Adding type: module in package.json would likely fix the issue.

@bogeychan bogeychan linked a pull request Jul 8, 2024 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant