-
Notifications
You must be signed in to change notification settings - Fork 155
just init ERR_MODULE_NOT_FOUND #1251
Copy link
Copy link
Labels
Description
Describe the bug
just init fails with ERR_MODULE_NOT_FOUND because justfile line 21 runs node packages/tools/src/index.ts sync-remote directly. Node.js cannot resolve .js extension imports (e.g. import('./sync-remote-deps.js')) to .ts files without a TypeScript loader.
The correct entry point is packages/tools/src/bin.js, which registers @oxc-node/core/register before importing index.ts.
Reproduction
Clone the repo and run: just init
Steps to reproduce
git clonethe repo- Run
just init - Observe
ERR_MODULE_NOT_FOUNDforsync-remote-deps.js
System Info
Node.js v22.18.0
just 1.48.1Used Package Manager
pnpm
Logs
node packages/tools/src/index.ts sync-remote
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/.../packages/tools/src/sync-remote-deps.js' imported from /Users/.../packages/tools/src/index.tsValidations
- Read the Contributing Guidelines.
- Check that there isn't already an issue for the same bug.
- Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
- The provided reproduction is a minimal reproducible example.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackPriority
None yet
Effort
None yet