question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v3.2.0 missing output

See original GitHub issue

Describe 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

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
tzimmermanncommented, Nov 11, 2022

@sodatea In react-stick’s demo page, we also saw the behaviour described here only after upgrading from 3.1.8 to 3.2.0. In case it helps

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.

0reactions
guoyunhecommented, Nov 25, 2022

I believe the change is from v3.2.0. And it is a regression. sideEffects: false causes empty output, which it shouldn’t.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found