Vite warning
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 153
- Forks
- 46
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 7
Description
I think we will need to change the toolkit so that we have .mjs build files generated and change the type to module. we get this warning when running the build
(!) Your Vite config uses features that are unsupported by configLoader: 'native', which is planned to become the default in a future major version of Vite:
- import "./vite-config/css" without a file extension (vite.config.mts:7:17). Add the file extension
- import "./vite-config/resolve" without a file extension (vite.config.mts:8:27). Add the file extension
- import "./vite-config/styles" without a file extension (vite.config.mts:9:26). Add the file extension
- import "./vite-config/cdn" without a file extension (vite.config.mts:10:44). Add the file extension
- import "./vite-config/components" without a file extension (vite.config.mts:11:82). Add the file extension
- ESM syntax in a file loaded as CommonJS (vite-config/css.ts:2:1). Use a
.mjsextension or set"type": "module"in the closest package.json - ESM syntax in a file loaded as CommonJS (vite-config/resolve.ts:1:1). Use a
.mjsextension or set"type": "module"in the closest package.json - ESM syntax in a file loaded as CommonJS (vite-config/styles.ts:1:1). Use a
.mjsextension or set"type": "module"in the closest package.json - ESM syntax in a file loaded as CommonJS (vite-config/cdn.ts:1:1). Use a
.mjsextension or set"type": "module"in the closest package.json - ESM syntax in a file loaded as CommonJS (vite-config/components.ts:1:1). Use a
.mjsextension or set"type": "module"in the closest package.json
SetVITE_CONFIG_NATIVE_IGNORE_WARNING=trueto suppress this warning.
vite v8.2.1 building client environment for cdn-legacy...
✓ 333 modules transformed.
computing gzip size...
dist/solid-ui.js 1,353.32 kB
dist/solid-ui.min.js 1,353.32 kB │ gzip: 385.05 kB │ map: 4,235.03 kB
[plugin @tailwindcss/vite:generate:build] [SOURCEMAP_BROKEN] Sourcemap is likely to be incorrect: a plugin (@tailwindcss/vite:generate:build) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help: https://rolldown.rs/guide/troubleshooting#warning-sourcemap-is-likely-to-be-incorrect
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with vite.config.mts and the five files under vite-config/ named in the warning, then run the build to reproduce it. Check the closest package.json and the current module settings before making changes. Done means the build completes without the listed native-loader and module warnings, while checking the sourcemap warning separately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100