Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS entrypoint not generated when another has same filename and content #277

Closed
2 tasks done
JasonBarnabe opened this issue Oct 12, 2022 · 3 comments
Closed
2 tasks done
Labels
bug: pending triage Something doesn't seem to be working, but hasn't been verified

Comments

@JasonBarnabe
Copy link
Contributor

  • I have tried upgrading by running bundle update vite_ruby.
  • I have read the troubleshooting section before opening an issue.

Description 📖

Given two SCSS entrypoints with the same name (in different directories) and the same content, on build, this message is output:

The emitted file "assets/index.f1efdae7.css" overwrites a previously emitted file of the same name.

When using vite_stylesheet_tag to use the entrypoint, only one will work. The other will cause ViteRuby::MissingEntrypointError.

In the same situation with JS files, one of the generated entrypoint URLs gets a 2 appended, and they both work.

Expect similar behaviour as JS files. Failing that, this seems like a reason to fail the build.

Vite Ruby Info

Run bin/rake vite:info and provide the output:

vite_ruby: 3.2.6
vite_rails: 3.0.12
rails: 6.1.6
node: v16.17.1
npm: 8.15.0
yarn: 1.22.5
pnpm: 
ruby: ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x86_64-linux]

installed packages:
Myapp@0.0.20 /www/myapp
├─┬ @vitejs/plugin-basic-ssl@0.1.1
│ └── vite@3.0.9 deduped
├─┬ vite-plugin-ruby@3.1.2
│ └── vite@3.0.9 deduped
└── vite@3.0.9

Logs 📜

If not providing a reproduction:

Output

Run DEBUG=vite-plugin-ruby:* bin/vite dev or DEBUG=vite-plugin-ruby:* bin/vite build and provide the output:

Building with Vite ⚡️
node_modules/.vite/basic-ssl
vite v3.0.9 building for production...
transforming...
✓ 722 modules transformed.
rendering chunks...
../../public/packs/vite/assets/ic_airplay_white_24px.ae77bdbd.svg         0.61 KiB
../../public/packs/vite/assets/play.d419c210.svg                          0.29 KiB
../../public/packs/vite/assets/seek-back.08a85694.svg                     1.99 KiB
../../public/packs/vite/assets/seek-forward.4c784a4d.svg                  2.90 KiB
../../public/packs/vite/assets/floating-icons-shadow.a8e3711a.png         8.17 KiB
../../public/packs/vite/assets/bg_benefits_1.1b6e1a1d.png                 123.89 KiB
../../public/packs/vite/assets/myapp_s_white.c86a2d30.svg              0.77 KiB
../../public/packs/vite/assets/cvc-instructions.62b1453f.png              35.40 KiB
../../public/packs/vite/assets/flags.0a012cf8.png                         69.20 KiB
../../public/packs/vite/assets/flags@2x.8ab4e961.png                      170.28 KiB
../../public/packs/vite/assets/attachment_doc.270b4496.svg                3.83 KiB
../../public/packs/vite/assets/bold.2e6f9e4b.svg                          1.22 KiB
../../public/packs/vite/assets/bold_active.12b9ce02.svg                   1.23 KiB
../../public/packs/vite/assets/italic.c3b8e18f.svg                        1.08 KiB
../../public/packs/vite/assets/italic_active.3accd0ac.svg                 1.00 KiB
../../public/packs/vite/assets/strike.67764ee1.svg                        3.82 KiB
../../public/packs/vite/assets/strike_active.777d81ec.svg                 3.82 KiB
../../public/packs/vite/assets/link.760def47.svg                          2.93 KiB
../../public/packs/vite/assets/link_active.48222f90.svg                   2.95 KiB
../../public/packs/vite/assets/heading.b68626f8.svg                       1.65 KiB
../../public/packs/vite/assets/heading_active.2386e1f9.svg                1.66 KiB
../../public/packs/vite/assets/quote.996375d4.svg                         1.33 KiB
../../public/packs/vite/assets/quote_active.8da53eed.svg                  1.34 KiB
../../public/packs/vite/assets/code.2a864667.svg                          2.03 KiB
../../public/packs/vite/assets/code_active.48d5e62f.svg                   2.04 KiB
../../public/packs/vite/assets/bullets2.c26f5e01.svg                      1.48 KiB
../../public/packs/vite/assets/bullets2_active.80bd0962.svg               1.50 KiB
../../public/packs/vite/assets/bullets.14f3c2b7.svg                       2.42 KiB
../../public/packs/vite/assets/indent_decrease.f51f18cf.svg               2.93 KiB
../../public/packs/vite/assets/bullets_active.044f240a.svg                2.53 KiB
../../public/packs/vite/assets/indent_decrease_active.2d42272a.svg        2.95 KiB
../../public/packs/vite/assets/indent_increase.4f2aa1ed.svg               2.93 KiB
../../public/packs/vite/assets/indent_increase_active.a3b1c1f6.svg        2.95 KiB
../../public/packs/vite/assets/attachment.4188468a.svg                    2.34 KiB
../../public/packs/vite/assets/attachment_active.4598b80c.svg             2.34 KiB
../../public/packs/vite/assets/undo.54b691ee.svg                          2.07 KiB
../../public/packs/vite/assets/redo.2363b115.svg                          1.90 KiB
../../public/packs/vite/assets/mention.5a81669d.svg                       1.75 KiB
../../public/packs/vite/manifest-assets.json                              0.00 KiB
../../public/packs/vite/manifest.json                                     34.82 KiB
../../public/packs/vite/assets/certificates.2d83a598.js                   0.00 KiB / gzip: 0.02 KiB
../../public/packs/vite/assets/certificates.2d83a598.js.map               0.10 KiB
../../public/packs/vite/assets/system_public.7377cd1e.js                  0.06 KiB / gzip: 0.07 KiB
../../public/packs/vite/assets/system_public.7377cd1e.js.map              0.10 KiB
../../public/packs/vite/assets/super_admin.16e76d1b.js                    0.47 KiB / gzip: 0.21 KiB
../../public/packs/vite/assets/super_admin.16e76d1b.js.map                1.12 KiB
../../public/packs/vite/assets/index.b8889320.js                          1.52 KiB / gzip: 0.64 KiB
../../public/packs/vite/assets/index.b8889320.js.map                      3.60 KiB
../../public/packs/vite/assets/index.182cd679.js                          1.86 KiB / gzip: 0.75 KiB
../../public/packs/vite/assets/index.182cd679.js.map                      5.27 KiB
../../public/packs/vite/assets/index.af344527.js                          1.33 KiB / gzip: 0.56 KiB
../../public/packs/vite/assets/index.af344527.js.map                      4.61 KiB
../../public/packs/vite/assets/index.14cce9fa.js                          1.32 KiB / gzip: 0.74 KiB
../../public/packs/vite/assets/index.14cce9fa.js.map                      4.70 KiB
../../public/packs/vite/assets/index.4ae46535.js                          0.06 KiB / gzip: 0.07 KiB
../../public/packs/vite/assets/index.4ae46535.js.map                      0.10 KiB
../../public/packs/vite/assets/index.4ae465352.js                         0.06 KiB / gzip: 0.07 KiB
../../public/packs/vite/assets/index.4ae465352.js.map                     0.10 KiB
../../public/packs/vite/assets/index.7b437d07.js                          1.97 KiB / gzip: 0.79 KiB
../../public/packs/vite/assets/index.7b437d07.js.map                      4.89 KiB
../../public/packs/vite/assets/index.360c70a2.js                          12.82 KiB / gzip: 3.49 KiB
../../public/packs/vite/assets/index.360c70a2.js.map                      40.39 KiB
../../public/packs/vite/assets/index.46609ae1.js                          2.27 KiB / gzip: 0.84 KiB
../../public/packs/vite/assets/index.46609ae1.js.map                      6.46 KiB
../../public/packs/vite/assets/index.548fcda2.js                          1.39 KiB / gzip: 0.60 KiB
../../public/packs/vite/assets/index.548fcda2.js.map                      3.39 KiB
../../public/packs/vite/assets/index.ed693802.js                          0.06 KiB / gzip: 0.07 KiB
../../public/packs/vite/assets/index.ed693802.js.map                      0.10 KiB
../../public/packs/vite/assets/index.80ec1ff4.js                          1.87 KiB / gzip: 0.57 KiB
../../public/packs/vite/assets/index.80ec1ff4.js.map                      4.50 KiB
../../public/packs/vite/assets/index.08373b0c.js                          1.79 KiB / gzip: 0.71 KiB
../../public/packs/vite/assets/index.08373b0c.js.map                      4.61 KiB
../../public/packs/vite/assets/index.6952d230.js                          0.58 KiB / gzip: 0.34 KiB
../../public/packs/vite/assets/index.6952d230.js.map                      1.54 KiB
../../public/packs/vite/assets/index.4ae465353.js                         0.06 KiB / gzip: 0.07 KiB
../../public/packs/vite/assets/index.4ae465353.js.map                     0.10 KiB
../../public/packs/vite/assets/index.0c4a86aa.js                          6.59 KiB / gzip: 1.74 KiB
../../public/packs/vite/assets/index.0c4a86aa.js.map                      14.92 KiB
../../public/packs/vite/assets/index.bc21afce.js                          0.99 KiB / gzip: 0.47 KiB
../../public/packs/vite/assets/index.bc21afce.js.map                      2.62 KiB
../../public/packs/vite/assets/index.794d6a08.js                          0.21 KiB / gzip: 0.17 KiB
../../public/packs/vite/assets/index.794d6a08.js.map                      0.53 KiB
../../public/packs/vite/assets/index.08b738b7.js                          0.80 KiB / gzip: 0.41 KiB
../../public/packs/vite/assets/index.08b738b7.js.map                      2.73 KiB
../../public/packs/vite/assets/index.9f28a0d8.js                          0.53 KiB / gzip: 0.29 KiB
../../public/packs/vite/assets/index.9f28a0d8.js.map                      1.58 KiB
../../public/packs/vite/assets/index.6e84f042.js                          1.29 KiB / gzip: 0.45 KiB
../../public/packs/vite/assets/index.6e84f042.js.map                      3.05 KiB
../../public/packs/vite/assets/index.7ed8d724.js                          0.21 KiB / gzip: 0.18 KiB
../../public/packs/vite/assets/index.7ed8d724.js.map                      0.55 KiB
../../public/packs/vite/assets/index.e397e01a.js                          1.05 KiB / gzip: 0.48 KiB
../../public/packs/vite/assets/index.e397e01a.js.map                      2.74 KiB
../../public/packs/vite/assets/index.5ce1b162.js                          1.04 KiB / gzip: 0.52 KiB
../../public/packs/vite/assets/index.5ce1b162.js.map                      2.50 KiB
../../public/packs/vite/assets/index.c8089fb9.js                          0.37 KiB / gzip: 0.20 KiB
../../public/packs/vite/assets/index.c8089fb9.js.map                      0.81 KiB
../../public/packs/vite/assets/index.3b4520b6.js                          2.44 KiB / gzip: 0.86 KiB
../../public/packs/vite/assets/index.3b4520b6.js.map                      6.57 KiB
../../public/packs/vite/assets/index.44701cd3.js                          1.67 KiB / gzip: 0.55 KiB
../../public/packs/vite/assets/index.44701cd3.js.map                      4.08 KiB
../../public/packs/vite/assets/index.ba19eb83.js                          2.09 KiB / gzip: 0.75 KiB
../../public/packs/vite/assets/index.ba19eb83.js.map                      4.94 KiB
../../public/packs/vite/assets/index.8fa76b82.js                          1.38 KiB / gzip: 0.55 KiB
../../public/packs/vite/assets/index.8fa76b82.js.map                      3.42 KiB
../../public/packs/vite/assets/index.a7a38844.js                          0.44 KiB / gzip: 0.23 KiB
../../public/packs/vite/assets/index.a7a38844.js.map                      1.03 KiB
../../public/packs/vite/assets/index.f4e493cc.js                          0.21 KiB / gzip: 0.19 KiB
../../public/packs/vite/assets/index.f4e493cc.js.map                      0.50 KiB
../../public/packs/vite/assets/index.c35e2aa4.js                          0.46 KiB / gzip: 0.30 KiB
../../public/packs/vite/assets/index.c35e2aa4.js.map                      1.22 KiB
../../public/packs/vite/assets/index.b3e8f122.js                          0.44 KiB / gzip: 0.25 KiB
../../public/packs/vite/assets/index.b3e8f122.js.map                      1.10 KiB
../../public/packs/vite/assets/index.853dd56f.js                          1.95 KiB / gzip: 0.64 KiB
../../public/packs/vite/assets/index.853dd56f.js.map                      4.95 KiB
../../public/packs/vite/assets/index.111cd84e.js                          1.83 KiB / gzip: 0.76 KiB
../../public/packs/vite/assets/index.111cd84e.js.map                      5.78 KiB
../../public/packs/vite/assets/index.20963991.js                          0.49 KiB / gzip: 0.33 KiB
../../public/packs/vite/assets/index.20963991.js.map                      1.44 KiB
../../public/packs/vite/assets/intl_phone.f69ede34.js                     0.95 KiB / gzip: 0.40 KiB
../../public/packs/vite/assets/intl_phone.f69ede34.js.map                 2.18 KiB
../../public/packs/vite/assets/index.52cf2407.js                          2.90 KiB / gzip: 0.93 KiB
../../public/packs/vite/assets/index.52cf2407.js.map                      9.15 KiB
../../public/packs/vite/assets/process_response.1bc225bc.js               1.63 KiB / gzip: 0.69 KiB
../../public/packs/vite/assets/process_response.1bc225bc.js.map           6.13 KiB
../../public/packs/vite/assets/WysiwygContentTemplatesRoute.8c4ad6f9.js   5.88 KiB / gzip: 2.33 KiB
../../public/packs/vite/assets/WysiwygContentTemplatesRoute.8c4ad6f9.js.map 21.72 KiB
../../public/packs/vite/assets/index.7447ecbd.js                          3.04 KiB / gzip: 0.96 KiB
../../public/packs/vite/assets/index.7447ecbd.js.map                      9.98 KiB
../../public/packs/vite/assets/index.b516d071.js                          1.24 KiB / gzip: 0.68 KiB
../../public/packs/vite/assets/index.b516d071.js.map                      3.78 KiB
../../public/packs/vite/assets/index.902cbf15.js                          12.28 KiB / gzip: 5.25 KiB
../../public/packs/vite/assets/index.902cbf15.js.map                      41.58 KiB
../../public/packs/vite/assets/stripe.fa274916.js                         36.55 KiB / gzip: 11.18 KiB
../../public/packs/vite/assets/stripe.fa274916.js.map                     92.91 KiB
../../public/packs/vite/assets/debounce.57bf161b.js                       0.11 KiB / gzip: 0.12 KiB
../../public/packs/vite/assets/debounce.57bf161b.js.map                   0.55 KiB
../../public/packs/vite/assets/splide.ed41c338.js                         29.15 KiB / gzip: 11.04 KiB
../../public/packs/vite/assets/splide.ed41c338.js.map                     195.09 KiB
../../public/packs/vite/assets/validation.8c3a99bb.js                     0.72 KiB / gzip: 0.44 KiB
../../public/packs/vite/assets/validation.8c3a99bb.js.map                 2.23 KiB
../../public/packs/vite/assets/autocorrect.a3233c25.js                    6.05 KiB / gzip: 2.52 KiB
../../public/packs/vite/assets/autocorrect.a3233c25.js.map                20.97 KiB
../../public/packs/vite/assets/jquery.144cfbf8.js                         22.67 KiB / gzip: 6.53 KiB
../../public/packs/vite/assets/jquery.144cfbf8.js.map                     84.61 KiB
../../public/packs/vite/assets/phone_main.00b5be61.js                     2.16 KiB / gzip: 1.11 KiB
../../public/packs/vite/assets/phone_main.00b5be61.js.map                 6.19 KiB
../../public/packs/vite/assets/main.39d5c257.js                           1.43 KiB / gzip: 0.75 KiB
../../public/packs/vite/assets/main.39d5c257.js.map                       3.77 KiB
../../public/packs/vite/assets/collapse.19cce3c3.js                       1.55 KiB / gzip: 0.77 KiB
../../public/packs/vite/assets/collapse.19cce3c3.js.map                   6.53 KiB
../../public/packs/vite/assets/jquery-payment.fc741d69.js                 7.92 KiB / gzip: 2.44 KiB
../../public/packs/vite/assets/jquery-payment.fc741d69.js.map             29.46 KiB
../../public/packs/vite/assets/index.1de5f369.css                         0.14 KiB / gzip: 0.09 KiB
../../public/packs/vite/assets/certificates.e3992ff1.css                  5.92 KiB / gzip: 1.46 KiB
../../public/packs/vite/assets/index.f511aa8f.css                         1.19 KiB / gzip: 0.26 KiB
../../public/packs/vite/assets/index.c2214cf6.css                         0.19 KiB / gzip: 0.13 KiB
../../public/packs/vite/assets/system_public_v2.0a38214a.css              2.01 KiB / gzip: 0.64 KiB
../../public/packs/vite/assets/index.44891ef0.css                         1.43 KiB / gzip: 0.42 KiB
../../public/packs/vite/assets/index.d76c8b44.css                         6.67 KiB / gzip: 1.13 KiB
../../public/packs/vite/assets/index.ebdca7ff.css                         1.84 KiB / gzip: 0.54 KiB
../../public/packs/vite/assets/index.bcbba514.css                         2.27 KiB / gzip: 0.55 KiB
../../public/packs/vite/assets/index.3ed5c9ea.css                         2.05 KiB / gzip: 0.50 KiB
../../public/packs/vite/assets/intl_phone.aaafaf03.css                    12.38 KiB / gzip: 2.56 KiB
../../public/packs/vite/assets/index.032f9821.css                         5.73 KiB / gzip: 0.71 KiB
../../public/packs/vite/assets/index.42369bbf.css                         3.83 KiB / gzip: 0.80 KiB
../../public/packs/vite/assets/index.2eba85ad.css                         0.36 KiB / gzip: 0.21 KiB
../../public/packs/vite/assets/index.d52363ef.css                         4.66 KiB / gzip: 0.82 KiB
../../public/packs/vite/assets/index.595f7fb3.css                         1.49 KiB / gzip: 0.44 KiB
../../public/packs/vite/assets/index.29d07a90.css                         2.30 KiB / gzip: 0.54 KiB
../../public/packs/vite/assets/index.091b5181.css                         0.06 KiB / gzip: 0.07 KiB
../../public/packs/vite/assets/index.f1efdae7.css                         0.01 KiB / gzip: 0.03 KiB
../../public/packs/vite/assets/index.cec4a93f.css                         0.57 KiB / gzip: 0.24 KiB
../../public/packs/vite/assets/index.b65fa687.css                         3.12 KiB / gzip: 0.65 KiB
../../public/packs/vite/assets/index.781d3ba1.css                         1.52 KiB / gzip: 0.51 KiB
../../public/packs/vite/assets/index.555f2fd7.css                         1.69 KiB / gzip: 0.44 KiB
../../public/packs/vite/assets/index.461400c7.css                         2.29 KiB / gzip: 0.60 KiB
../../public/packs/vite/assets/index.d4028fd9.css                         0.27 KiB / gzip: 0.14 KiB
../../public/packs/vite/assets/index.3e6b7946.css                         1.13 KiB / gzip: 0.37 KiB
../../public/packs/vite/assets/index.c3d0f228.css                         0.22 KiB / gzip: 0.11 KiB
../../public/packs/vite/assets/index.522319bc.css                         0.28 KiB / gzip: 0.15 KiB
../../public/packs/vite/assets/index.2afaf3e0.css                         9.44 KiB / gzip: 1.51 KiB
../../public/packs/vite/assets/index.168f471e.css                         6.50 KiB / gzip: 1.37 KiB
../../public/packs/vite/assets/index.ffe2dec1.css                         3.41 KiB / gzip: 0.86 KiB
../../public/packs/vite/assets/index.5d9b6d61.css                         6.13 KiB / gzip: 0.94 KiB
../../public/packs/vite/assets/index.5abe9e34.css                         0.17 KiB / gzip: 0.12 KiB
../../public/packs/vite/assets/index.0021e87d.css                         7.09 KiB / gzip: 1.16 KiB
../../public/packs/vite/assets/index.5e67eb05.css                         0.22 KiB / gzip: 0.13 KiB
../../public/packs/vite/assets/index.cddb9e6f.css                         7.12 KiB / gzip: 1.18 KiB
../../public/packs/vite/assets/index.458ae0bd.css                         1.87 KiB / gzip: 0.52 KiB
../../public/packs/vite/assets/splide.e0b77588.css                        4.24 KiB / gzip: 1.03 KiB
../../public/packs/vite/assets/index.f3fafc37.css                         3.42 KiB / gzip: 0.80 KiB
../../public/packs/vite/assets/index.3f476a3f.css                         1.32 KiB / gzip: 0.39 KiB
../../public/packs/vite/assets/stripe.fe0a66a7.css                        9.64 KiB / gzip: 2.64 KiB
../../public/packs/vite/assets/index.64e1a700.css                         1.84 KiB / gzip: 0.48 KiB
../../public/packs/vite/assets/index.d9b6c460.css                         0.27 KiB / gzip: 0.16 KiB
../../public/packs/vite/assets/index.0d75b9ae.css                         0.05 KiB / gzip: 0.07 KiB
../../public/packs/vite/assets/index.f4b10f78.css                         0.14 KiB / gzip: 0.11 KiB
../../public/packs/vite/assets/index.9dcf987c.css                         3.20 KiB / gzip: 0.55 KiB
../../public/packs/vite/assets/index.45679983.css                         0.39 KiB / gzip: 0.22 KiB
../../public/packs/vite/assets/index.6ccfeefb.css                         2.43 KiB / gzip: 0.68 KiB
../../public/packs/vite/assets/index.b1367bd5.css                         5.94 KiB / gzip: 1.01 KiB
../../public/packs/vite/assets/index.920a8f9e.css                         2.14 KiB / gzip: 0.62 KiB
../../public/packs/vite/assets/index.a276af4b.css                         0.14 KiB / gzip: 0.11 KiB
../../public/packs/vite/assets/index.1640be29.css                         2.02 KiB / gzip: 0.52 KiB
../../public/packs/vite/assets/index.18e1ad4d.css                         0.87 KiB / gzip: 0.31 KiB
../../public/packs/vite/assets/index.acd9ca4b.css                         1.80 KiB / gzip: 0.42 KiB
../../public/packs/vite/assets/index.6a3c6e26.css                         0.08 KiB / gzip: 0.09 KiB
../../public/packs/vite/assets/index.33725b9e.css                         1.36 KiB / gzip: 0.38 KiB
../../public/packs/vite/assets/index.a57eee83.css                         1.16 KiB / gzip: 0.31 KiB
../../public/packs/vite/assets/index.aa02ba31.css                         1.71 KiB / gzip: 0.46 KiB
../../public/packs/vite/assets/index.79eac68e.css                         1.35 KiB / gzip: 0.43 KiB
../../public/packs/vite/assets/index.5e4c1fdf.css                         0.13 KiB / gzip: 0.11 KiB
../../public/packs/vite/assets/index.0580125a.css                         1.72 KiB / gzip: 0.60 KiB
../../public/packs/vite/assets/index.ff3ff3fa.css                         0.07 KiB / gzip: 0.09 KiB
../../public/packs/vite/assets/index.7a26be64.css                         2.08 KiB / gzip: 0.61 KiB
../../public/packs/vite/assets/index.0057dee5.css                         1.55 KiB / gzip: 0.46 KiB
../../public/packs/vite/assets/index.37142b45.css                         4.31 KiB / gzip: 1.13 KiB
../../public/packs/vite/assets/index.269ccaaf.css                         0.04 KiB / gzip: 0.06 KiB
../../public/packs/vite/assets/index.3c7c0776.css                         4.08 KiB / gzip: 0.93 KiB
../../public/packs/vite/assets/index.ae26ceeb.css                         4.02 KiB / gzip: 0.91 KiB
../../public/packs/vite/assets/index.e5719547.css                         2.43 KiB / gzip: 0.72 KiB
../../public/packs/vite/assets/index.ad74a8a4.css                         1.99 KiB / gzip: 0.55 KiB
../../public/packs/vite/assets/phone_main.514ecc0f.css                    0.23 KiB / gzip: 0.17 KiB
../../public/packs/vite/assets/index.b878a4c4.css                         12.70 KiB / gzip: 2.47 KiB
../../public/packs/vite/assets/index.2811dd90.css                         13.50 KiB / gzip: 1.94 KiB
../../public/packs/vite/assets/main.6c40d6a3.css                          19.85 KiB / gzip: 4.35 KiB
../../public/packs/vite/assets/main.e68f6529.css                          19.44 KiB / gzip: 2.88 KiB
../../public/packs/vite/assets/index.4ed735b1.css                         21.82 KiB / gzip: 5.36 KiB
../../public/packs/vite/assets/index.a81c9557.css                         1.14 KiB / gzip: 0.35 KiB
../../public/packs/vite/assets/site.19e56c8a.css                          28.12 KiB / gzip: 5.52 KiB
../../public/packs/vite/assets/system_public_v2.bfd8707f.js               59.38 KiB / gzip: 16.89 KiB
../../public/packs/vite/assets/system_public_v2.bfd8707f.js.map           224.73 KiB
../../public/packs/vite/assets/main.15b4fe23.css                          62.65 KiB / gzip: 14.67 KiB
../../public/packs/vite/assets/site.3d1c2945.js                           89.87 KiB / gzip: 24.63 KiB
../../public/packs/vite/assets/site.3d1c2945.js.map                       354.52 KiB
../../public/packs/vite/assets/jquery.fbfe5d48.js                         88.95 KiB / gzip: 31.65 KiB
../../public/packs/vite/assets/jquery.fbfe5d48.js.map                     453.56 KiB
../../public/packs/vite/assets/index.27464c55.js                          179.24 KiB / gzip: 52.38 KiB
../../public/packs/vite/assets/index.27464c55.js.map                      742.21 KiB
../../public/packs/vite/assets/main.7f36638a.js                           279.96 KiB / gzip: 65.24 KiB
../../public/packs/vite/assets/main.7f36638a.js.map                       685.06 KiB
../../public/packs/vite/assets/main.73f25d6a.js                           272.30 KiB / gzip: 68.33 KiB
../../public/packs/vite/assets/main.73f25d6a.js.map                       619.07 KiB
../../public/packs/vite/assets/main.d841b8ae.js                           736.80 KiB / gzip: 208.70 KiB
../../public/packs/vite/assets/main.d841b8ae.js.map                       3451.84 KiB
Build with Vite complete: /www/myapp/public/packs/vite
2022-10-12T22:10:47.510Z vite-plugin-ruby:config {
  base: '/packs/vite/',
  build: {
    emptyOutDir: false,
    sourcemap: true,
    assetsDir: 'assets',
    manifest: true,
    outDir: '../../public/packs/vite',
    rollupOptions: { input: [Object], output: [Object] }
  },
  envDir: '/www/myapp',
  root: '/www/myapp/app/javascript',
  server: {
    fs: { allow: [Array], strict: true },
    host: 'localhost',
    https: false,
    port: 3036,
    strictPort: true,
    hmr: { host: 'localhost', clientPort: 3036 }
  },
  entrypoints: {
    'entrypoints/certificates.js': '/www/myapp/app/javascript/entrypoints/certificates.js',
    'entrypoints/site.js': '/www/myapp/app/javascript/entrypoints/site.js',
    'entrypoints/super_admin.js': '/www/myapp/app/javascript/entrypoints/super_admin.js',
    'entrypoints/system_public.js': '/www/myapp/app/javascript/entrypoints/system_public.js',
    'entrypoints/system_public_v2.js': '/www/myapp/app/javascript/entrypoints/system_public_v2.js',
    'theme/sections/affiliate_leaderboard/index.scss': '/www/myapp/app/javascript/theme/sections/affiliate_leaderboard/index.scss',
    'theme/sections/blog_post_comments/index.scss': '/www/myapp/app/javascript/theme/sections/blog_post_comments/index.scss',
    'theme/sections/blog_post_content/index.scss': '/www/myapp/app/javascript/theme/sections/blog_post_content/index.scss',
    'theme/sections/blog_posts_feed/index.scss': '/www/myapp/app/javascript/theme/sections/blog_posts_feed/index.scss',
    'theme/sections/buttons/index.scss': '/www/myapp/app/javascript/theme/sections/buttons/index.scss',
    'theme/sections/checklist/index.scss': '/www/myapp/app/javascript/theme/sections/checklist/index.scss',
    'theme/sections/clp_about/index.scss': '/www/myapp/app/javascript/theme/sections/clp_about/index.scss',
    'theme/sections/clp_benefits/index.scss': '/www/myapp/app/javascript/theme/sections/clp_benefits/index.scss',
    'theme/sections/clp_faq/index.scss': '/www/myapp/app/javascript/theme/sections/clp_faq/index.scss',
    'theme/sections/clp_features/index.scss': '/www/myapp/app/javascript/theme/sections/clp_features/index.scss',
    'theme/sections/clp_get_in_touch_form/index.scss': '/www/myapp/app/javascript/theme/sections/clp_get_in_touch_form/index.scss',
    'theme/sections/clp_get_started/index.scss': '/www/myapp/app/javascript/theme/sections/clp_get_started/index.scss',
    'theme/sections/clp_introduction/index.scss': '/www/myapp/app/javascript/theme/sections/clp_introduction/index.scss',
    'theme/sections/clp_review_carousel/index.js': '/www/myapp/app/javascript/theme/sections/clp_review_carousel/index.js',
    'theme/sections/clp_sellable_product/index.scss': '/www/myapp/app/javascript/theme/sections/clp_sellable_product/index.scss',
    'theme/sections/clp_subscribe/index.scss': '/www/myapp/app/javascript/theme/sections/clp_subscribe/index.scss',
    'theme/sections/commitments/index.scss': '/www/myapp/app/javascript/theme/sections/commitments/index.scss',
    'theme/sections/contact_form/index.scss': '/www/myapp/app/javascript/theme/sections/contact_form/index.scss',
    'theme/sections/countdown/index.js': '/www/myapp/app/javascript/theme/sections/countdown/index.js',
    'theme/sections/cta_with_parallax/index.js': '/www/myapp/app/javascript/theme/sections/cta_with_parallax/index.js',
    'theme/sections/engagement_badges/index.scss': '/www/myapp/app/javascript/theme/sections/engagement_badges/index.scss',
    'theme/sections/faq/index.scss': '/www/myapp/app/javascript/theme/sections/faq/index.scss',
    'theme/sections/features/index.scss': '/www/myapp/app/javascript/theme/sections/features/index.scss',
    'theme/sections/features_split/index.scss': '/www/myapp/app/javascript/theme/sections/features_split/index.scss',
    'theme/sections/floating_icons/index.scss': '/www/myapp/app/javascript/theme/sections/floating_icons/index.scss',
    'theme/sections/full_width_testimonials/index.scss': '/www/myapp/app/javascript/theme/sections/full_width_testimonials/index.scss',
    'theme/sections/heading/index.scss': '/www/myapp/app/javascript/theme/sections/heading/index.scss',
    'theme/sections/hero_image/index.scss': '/www/myapp/app/javascript/theme/sections/hero_image/index.scss',
    'theme/sections/hero_media/index.scss': '/www/myapp/app/javascript/theme/sections/hero_media/index.scss',
    'theme/sections/image_gallery/index.js': '/www/myapp/app/javascript/theme/sections/image_gallery/index.js',
    'theme/sections/instagram/index.js': '/www/myapp/app/javascript/theme/sections/instagram/index.js',
    'theme/sections/list_signup_horizontal/index.js': '/www/myapp/app/javascript/theme/sections/list_signup_horizontal/index.js',
    'theme/sections/list_signup_pop_up/index.js': '/www/myapp/app/javascript/theme/sections/list_signup_pop_up/index.js',
    'theme/sections/logos/index.scss': '/www/myapp/app/javascript/theme/sections/logos/index.scss',
    'theme/sections/media/index.scss': '/www/myapp/app/javascript/theme/sections/media/index.scss',
    'theme/sections/numbers/index.scss': '/www/myapp/app/javascript/theme/sections/numbers/index.scss',
    'theme/sections/pricing/index.scss': '/www/myapp/app/javascript/theme/sections/pricing/index.scss',
    'theme/sections/recent_user_contributions/index.scss': '/www/myapp/app/javascript/theme/sections/recent_user_contributions/index.scss',
    'theme/sections/myapp_features/index.js': '/www/myapp/app/javascript/theme/sections/myapp_features/index.js',
    'theme/sections/myapp_new_converging_animation/index.js': '/www/myapp/app/javascript/theme/sections/myapp_new_converging_animation/index.js',
    'theme/sections/myapp_new_feature_toggler/index.js': '/www/myapp/app/javascript/theme/sections/myapp_new_feature_toggler/index.js',
    'theme/sections/myapp_new_feature_with_images/index.js': '/www/myapp/app/javascript/theme/sections/myapp_new_feature_with_images/index.js',
    'theme/sections/myapp_new_hero_with_testimonials/index.js': '/www/myapp/app/javascript/theme/sections/myapp_new_hero_with_testimonials/index.js',
    'theme/sections/myapp_new_plan_calculator/index.js': '/www/myapp/app/javascript/theme/sections/myapp_new_plan_calculator/index.js',
    'theme/sections/myapp_new_pricing_table/index.js': '/www/myapp/app/javascript/theme/sections/myapp_new_pricing_table/index.js',
    'theme/sections/myapp_new_revenue/index.js': '/www/myapp/app/javascript/theme/sections/myapp_new_revenue/index.js',
    'theme/sections/spacer/index.scss': '/www/myapp/app/javascript/theme/sections/spacer/index.scss',
    'theme/sections/splash_screen/index.js': '/www/myapp/app/javascript/theme/sections/splash_screen/index.js',
    'theme/sections/split_hero/index.scss': '/www/myapp/app/javascript/theme/sections/split_hero/index.scss',
    'theme/sections/testimonials/index.js': '/www/myapp/app/javascript/theme/sections/testimonials/index.js',
    'theme/sections/text_and_buttons/index.scss': '/www/myapp/app/javascript/theme/sections/text_and_buttons/index.scss',
    'theme/sections/text_and_media/index.scss': '/www/myapp/app/javascript/theme/sections/text_and_media/index.scss',
    'theme/sections/thank_you_page_content/index.scss': '/www/myapp/app/javascript/theme/sections/thank_you_page_content/index.scss',
    'theme/sections/upcoming_events/index.scss': '/www/myapp/app/javascript/theme/sections/upcoming_events/index.scss',
    'theme/sections/upcoming_events_calendar/index.js': '/www/myapp/app/javascript/theme/sections/upcoming_events_calendar/index.js',
    'theme/sections/video_links/index.scss': '/www/myapp/app/javascript/theme/sections/video_links/index.scss',
    'theme/snippets/badge/index.js': '/www/myapp/app/javascript/theme/snippets/badge/index.js',
    'theme/snippets/clp_button_style/index.scss': '/www/myapp/app/javascript/theme/snippets/clp_button_style/index.scss',
    'theme/snippets/clp_course_section/index.js': '/www/myapp/app/javascript/theme/snippets/clp_course_section/index.js',
    'theme/snippets/clp_ellipse/index.scss': '/www/myapp/app/javascript/theme/snippets/clp_ellipse/index.scss',
    'theme/snippets/clp_faq_item/index.js': '/www/myapp/app/javascript/theme/snippets/clp_faq_item/index.js',
    'theme/snippets/clp_review/index.scss': '/www/myapp/app/javascript/theme/snippets/clp_review/index.scss',
    'theme/snippets/clp_section_intro/index.scss': '/www/myapp/app/javascript/theme/snippets/clp_section_intro/index.scss',
    'theme/snippets/clp_sellable_product_info/index.scss': '/www/myapp/app/javascript/theme/snippets/clp_sellable_product_info/index.scss',
    'theme/snippets/comment/index.js': '/www/myapp/app/javascript/theme/snippets/comment/index.js',
    'theme/snippets/course_author/index.scss': '/www/myapp/app/javascript/theme/snippets/course_author/index.scss',
    'theme/snippets/course_lesson_attachments/index.js': '/www/myapp/app/javascript/theme/snippets/course_lesson_attachments/index.js',
    'theme/snippets/course_media_meta/index.scss': '/www/myapp/app/javascript/theme/snippets/course_media_meta/index.scss',
    'theme/snippets/course_nav_lessons/index.scss': '/www/myapp/app/javascript/theme/snippets/course_nav_lessons/index.scss',
    'theme/snippets/course_unauthorized/index.scss': '/www/myapp/app/javascript/theme/snippets/course_unauthorized/index.scss',
    'theme/snippets/following/index.js': '/www/myapp/app/javascript/theme/snippets/following/index.js',
    'theme/snippets/forum_post_form/index.scss': '/www/myapp/app/javascript/theme/snippets/forum_post_form/index.scss',
    'theme/snippets/forum_posts/index.scss': '/www/myapp/app/javascript/theme/snippets/forum_posts/index.scss',
    'theme/snippets/forum_sidebar/index.scss': '/www/myapp/app/javascript/theme/snippets/forum_sidebar/index.scss',
    'theme/snippets/header/index.js': '/www/myapp/app/javascript/theme/snippets/header/index.js',
    'theme/snippets/header_announcement/index.js': '/www/myapp/app/javascript/theme/snippets/header_announcement/index.js',
    'theme/snippets/note/index.js': '/www/myapp/app/javascript/theme/snippets/note/index.js',
    'theme/snippets/opening_section_tag/index.scss': '/www/myapp/app/javascript/theme/snippets/opening_section_tag/index.scss',
    'theme/snippets/product_asset_switcher/index.js': '/www/myapp/app/javascript/theme/snippets/product_asset_switcher/index.js',
    'theme/snippets/product_price_switcher/index.js': '/www/myapp/app/javascript/theme/snippets/product_price_switcher/index.js',
    'theme/snippets/product_quantity_switcher/index.js': '/www/myapp/app/javascript/theme/snippets/product_quantity_switcher/index.js',
    'theme/snippets/quiz/index.js': '/www/myapp/app/javascript/theme/snippets/quiz/index.js',
    'theme/snippets/search_results/index.scss': '/www/myapp/app/javascript/theme/snippets/search_results/index.scss',
    'theme/snippets/sharing/index.js': '/www/myapp/app/javascript/theme/snippets/sharing/index.js',
    'theme/snippets/myapp_com_header/index.js': '/www/myapp/app/javascript/theme/snippets/myapp_com_header/index.js',
    'theme/snippets/myapp_plan_duration_switch/index.js': '/www/myapp/app/javascript/theme/snippets/myapp_plan_duration_switch/index.js',
    'theme/snippets/spacer/index.scss': '/www/myapp/app/javascript/theme/snippets/spacer/index.scss',
    'theme/templates/cart/index.js': '/www/myapp/app/javascript/theme/templates/cart/index.js',
    'theme/templates/course/index.scss': '/www/myapp/app/javascript/theme/templates/course/index.scss',
    'theme/templates/course_lesson/index.js': '/www/myapp/app/javascript/theme/templates/course_lesson/index.js',
    'theme/templates/forum/index.scss': '/www/myapp/app/javascript/theme/templates/forum/index.scss',
    'theme/templates/forum_post/index.js': '/www/myapp/app/javascript/theme/templates/forum_post/index.js',
    'theme/templates/incomplete_quiz/index.scss': '/www/myapp/app/javascript/theme/templates/incomplete_quiz/index.scss',
    'theme/templates/member/index.scss': '/www/myapp/app/javascript/theme/templates/member/index.scss',
    'theme/templates/members/index.scss': '/www/myapp/app/javascript/theme/templates/members/index.scss',
    'theme/templates/notifications/index.js': '/www/myapp/app/javascript/theme/templates/notifications/index.js',
    'theme/templates/notifications/index.scss': '/www/myapp/app/javascript/theme/templates/notifications/index.scss',
    'theme/templates/search/index.scss': '/www/myapp/app/javascript/theme/templates/search/index.scss'
  }
}
DEPRECATION WARNING: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($grid-gutter-width, 2) or calc($grid-gutter-width / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

    ╷
348 │ $navbar-padding-horizontal:        floor(($grid-gutter-width / 2));
    │                                           ^^^^^^^^^^^^^^^^^^^^^^
    ╵
    app/assets/stylesheets/system_public/variables.scss 348:43  @import
    app/javascript/common/components/site_form/main.scss 7:9    root stylesheet

DEPRECATION WARNING: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($navbar-height - $line-height-computed, 2) or calc(($navbar-height - $line-height-computed) / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

    ╷
349 │ $navbar-padding-vertical:          (($navbar-height - $line-height-computed) / 2);
    │                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
    app/assets/stylesheets/system_public/variables.scss 349:37  @import
    app/javascript/common/components/site_form/main.scss 7:9    root stylesheet

Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
The emitted file "assets/index.f1efdae7.css" overwrites a previously emitted file of the same name.
warnings when minifying css:
▲ [WARNING] Expected identifier but found "*" [css-syntax-error]

    <stdin>:7:2:
      7 │   *zoom: 1;
        ╵   ^


2022-10-12T22:10:56.793Z vite-plugin-ruby:assets-manifest { manifest: Map(0) {} }

(!) Some chunks are larger than 500 KiB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
@JasonBarnabe JasonBarnabe added the bug: pending triage Something doesn't seem to be working, but hasn't been verified label Oct 12, 2022
@ElMassimo
Copy link
Owner

ElMassimo commented Oct 13, 2022

A pull request to fix it was recently merged to fix this issue in Vite:

and was released first in 3.2.0-beta.0.

In the meantime, you can use a different file name for files that have the same content.

@JasonBarnabe
Copy link
Contributor Author

I've upgraded to vite_ruby 3.2.8 and vite 3.2.2. This problem seems to persist - still get the message on build, and the entrypoint still does not exist, causing ViteRuby::MissingEntrypointError.

@ElMassimo
Copy link
Owner

I'd suggest checking in the Vite bug tracker for any related issues, and opening an issue there with a minimal reproduction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: pending triage Something doesn't seem to be working, but hasn't been verified
Projects
None yet
Development

No branches or pull requests

2 participants