ESM package.json `type:module` support
- Dominant language
- TypeScript
- Stars
- 14.1k
- Forks
- 803
- PR merge metrics
- No merged PRs in 30d
Description
### What is the problem?
ESM package.json `type:module` support
### Paste all your error logs here:
### Paste all relevant code snippets here:
### 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_
Contributor guide
Research direction
The issue names package.json and the type:module setting, but no source file, test, or specific failure is identified. Start by reproducing it with the reported Node 18.16.1 environment, then trace the affected package or build entry point. Done means Blitz supports the reported ESM package configuration without the shown failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100