-
Notifications
You must be signed in to change notification settings - Fork 111
Description
Describe the bug
I posted this on the discord but I'm afraid it might get overlooked so here is the issue.
The monorepo template comes with the following ts config
"module": "nodenext",
"moduleResolution": "nodenext",
Which is ok but that breaks the rest of the repo.
Message:
Relative import paths need explicit file extensions in ECMAScript imports when --moduleResolution is node16 or nodenext. Consider adding an extension to the import path. (ts 2834)
I managed to get it working by changing them to this but not sure if it is the recommended.
"module": "preserve", "moduleResolution": "bundler"
Reproduction
https://github.com/voidzero-dev/vite-plus/issues
Steps to reproduce
vp createthen select monorepo- try to modify vite.config.ts
3. Check `/packages/utils/tests/index.test.ts` and you'll see the error on the line `import { fn } from "../src";`
System Info
VITE+ - The Unified Toolchain for the Web
Environment:
Version 24.14.0
Source engines.node
Source Path /Users/wladpaiva/Developer/f/testando-ts/package.json
Project Root /Users/wladpaiva/Developer/f/testando-ts
Tool Paths:
node /Users/wladpaiva/.vite-plus/js_runtime/node/24.14.0/bin/node
npm /Users/wladpaiva/.vite-plus/js_runtime/node/24.14.0/bin/npm
npx /Users/wladpaiva/.vite-plus/js_runtime/node/24.14.0/bin/npx
VITE+ - The Unified Toolchain for the Web
vp v0.1.12
Local vite-plus:
vite-plus v0.1.12
Tools:
vite v8.0.0
rolldown v1.0.0-rc.9
vitest v4.1.0
oxfmt v0.40.0
oxlint v1.55.0
oxlint-tsgolint v0.17.0
tsdown v0.21.3
Environment:
Package manager pnpm v10.32.1
Node.js v>=22.12.0 (engines.node)Used Package Manager
pnpm
Logs
Validations
- 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
No labels
Type
Fields
Give feedbackPriority
None yet
Effort
None yet