remix icon indicating copy to clipboard operation
remix copied to clipboard

Empty JS chunk created for resource route

Open jakearchibald opened this issue 1 year ago • 0 comments

Reproduction

From the base vite project: https://github.com/jakearchibald/remix-empty-js-bug/commit/4b1a7cffb277755cf7850de7718065a70f7cd36a

Then npm run build

System Info

System:
    OS: macOS 14.3
    CPU: (8) arm64 Apple M1 Pro
    Memory: 82.94 MB / 16.00 GB
    Shell: 3.7.0 - /opt/homebrew/bin/fish
  Binaries:
    Node: 20.10.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.4 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 122.0.6261.128
    Chrome Canary: 124.0.6357.0
    Edge: 122.0.2365.80
    Safari: 17.3
    Safari Technology Preview: 17.4
  npmPackages:
    @remix-run/dev: ^2.8.1 => 2.8.1
    @remix-run/node: ^2.8.1 => 2.8.1
    @remix-run/react: ^2.8.1 => 2.8.1
    @remix-run/serve: ^2.8.1 => 2.8.1
    vite: ^5.1.0 => 5.1.6

Used Package Manager

npm

Expected Behavior

.

Actual Behavior

An empty manifest_.json_-l0sNRNKZ.js is created as an asset as part of the build. It doesn't seem to be used anywhere, although it's referenced in the remix manifest.

jakearchibald avatar Mar 14 '24 16:03 jakearchibald