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

ESM package.json type:module support #4204

Open
tianyingchun opened this issue Aug 25, 2023 · 2 comments
Open

ESM package.json type:module support #4204

tianyingchun opened this issue Aug 25, 2023 · 2 comments
Labels
kind/bug Something isn't working status/triage

Comments

@tianyingchun
Copy link

tianyingchun commented Aug 25, 2023

What is the problem?

ESM package.json type:module support

Paste all your error logs here:

image

Paste all relevant code snippets here:

image

What are detailed steps to reproduce this?

packge.json
type:module

Run blitz -v and paste the output here:

 System:
    OS: macOS 13.4.1
    CPU: (8) arm64 Apple M1
    Memory: 243.00 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.1 - /usr/local/bin/node
    Yarn: 3.2.4 - /usr/local/bin/yarn
    npm: 9.5.1 - /usr/local/bin/npm
  npmPackages:
    @blitzjs/auth: Not Found
    @blitzjs/next: Not Found
    @blitzjs/rpc: Not Found
    @prisma/client: Not Found
    blitz: Not Found
    next: Not Found
    prisma: Not Found
    react: Not Found
    react-dom: Not Found
    typescript: Not Found

Please include below any other applicable logs and screenshots that show your problem:

No response

@tianyingchun tianyingchun added kind/bug Something isn't working status/triage labels Aug 25, 2023
@siddhsuresh
Copy link
Member

Hey @tianyingchun, yes we do not support this functionality right now. The way to go for this issue is to run esbuild before we generate the routes manifest to get both .mjs and .cjs versions

@tianyingchun
Copy link
Author

But more and more npm modules required us declare type:module ,is any plan for this feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/triage
Projects
None yet
Development

No branches or pull requests

2 participants