v3.2.0 missing output
See original GitHub issueDescribe the bug
After upgrading to v3.2.0 or later, vite build
no longer outputs CSS files and is missing JS (except barebones IIFE).
Reproduction
https://github.com/DerYeger/vue-masonry-wall/tree/ae1b3b4586a8b0eba96e56997fce34ecd39dd0f2
Steps to reproduce
Run yarn install && yarn build && yarn demo:build
System Info
System:
OS: macOS 13.1
CPU: (8) arm64 Apple M1
Memory: 444.34 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.18.0 - ~/.volta/tools/image/node/16.18.0/bin/node
Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn
npm: 8.19.2 - ~/.volta/tools/image/node/16.18.0/bin/npm
Browsers:
Chrome: 107.0.5304.87
Firefox: 104.0
Safari: 16.1
npmPackages:
@vitejs/plugin-vue: 3.2.0 => 3.2.0
vite: 3.2.1 => 3.2.1
Used Package Manager
yarn
Logs
Expected
build:demo: vite v3.1.8 building for production...
build:demo: transforming...
build:demo: ✓ 24 modules transformed.
build:demo: rendering chunks...
build:demo: dist/index.html 1.13 KiB
build:demo: dist/assets/index.306b3559.css 2.84 KiB / gzip: 0.99 KiB
build:demo: dist/assets/index.34650a52.js 63.97 KiB / gzip: 25.68 KiB
With v3.2.0
vite v3.2.1 building for production...
transforming...
✓ 24 modules transformed.
rendering chunks...
dist/index.html 1.07 KiB
dist/assets/index.891d93e6.js 0.69 KiB / gzip: 0.39 KiB
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it’s a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:7 (4 by maintainers)
Top Results From Across the Web
failing to compile on Windows OS: "Missing output directives."
I've downloaded those files: Protocol Buffers 2.6.1 full source: https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz Protocol ...
Read more >Eos Family console does not output in v3 but did in v2
If I switch back to v2.9.x, it does output DMX / sACN / ArtNet / etc. The issue persists through a power-cycle of...
Read more >Nextflow: Missing output file(s) expected by process
The script in the process works fine. However, I'm wondering if I'm misunderstanding or missing something obvious. If I've forgot to include ...
Read more >No Audio Output Device is Installed-nothing in Device Manager
Hi, Try this - Open an Elevated Command Prompt : Start - type in the Search box -> CMD.exe find at top -...
Read more >GNU PSPP
It outputs the second page to a file named with a -2 suffix, the third with a -3 suffix, and so on. -O...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@sodatea In react-stick’s demo page, we also saw the behaviour described here only after upgrading from
3.1.8
to3.2.0
. In case it helpsvite 3.1.8
(the JS bundle is ~128kB): https://react-stick-o70kfm9oe-signavio.vercel.app/vite 3.2.0
upgrade shows a white page (the JS bundle is <1kB and only contains some module loading boilerplate code): https://react-stick-c0igwspqb-signavio.vercel.app/Removing
sideEffects: false
fixed the issue, but I wanted to mention it anyway, as there seems to have been some kind of change in 3.2.0 that surfaced this bug.I believe the change is from v3.2.0. And it is a regression.
sideEffects: false
causes empty output, which it shouldn’t.