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.

Can't get @vitejs/plugin-legacy working

See original GitHub issue

Me again 😅

I (think) I can’t get @vitejs/plugin-legacy working properly, I’ve set up helmet for express to generate the Content-Security-Policy headers for the script hashes and it’s generating the legacy bundles, but I think it’s not actually referencing anything in my html not in <head/> nor in <body/>

My vite.config.js plugins looks like this

plugins: [legacy(), reactRefresh(), ssr()],

Also tried different ordering just to make sure.

Do I have to include anything in my _default.page.server.tsx manually?

I guess it’s due to vite-plugin-ssr not using Vites static index.html file 🤔

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
brilloutcommented, Aug 21, 2021

No worries, let me know if & how you run into problems.

On Sat, Aug 21, 2021 at 1:59 PM Kadir Yazıcı @.***> wrote:

I used vite-plugin-ssr but not @vitejs/plugin-legacy I just saw this issue and wanted to send a comment. And I’m sorry for commenting before using it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/brillout/vite-plugin-ssr/issues/39#issuecomment-903105773, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHVQRT3E4OECKACZETGN5LT56IIRANCNFSM422AXDDQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

0reactions
lukastaegertcommented, Oct 18, 2022

Also check out #477

Read more comments on GitHub >

github_iconTop Results From Across the Web

@vitejs/plugin-legacy - npm
The legacy plugin offers a way to use native import() in the modern build while falling back to the legacy build in browsers...
Read more >
Plugins - Vite
Before searching for a Vite or Compatible Rollup plugin, check out the Features Guide. ... Provides legacy browsers support for the production build....
Read more >
Troubleshooting | Vite Ruby
Verify that both vite and vite-plugin-ruby are in devDependencies in your package.json and have been installed by running bin/vite info .
Read more >
Exploring Vite Through its Source Code - SitePoint
Note: plugin-legacy is for legacy browsers that don't support native ESM. The most common way that these plugins are used is through their ......
Read more >
Vite plugin for Craft CMS - nystudio107
The Vite plugin allows the use of the Vite.js next generation frontend tooling with Craft ... However, it works fine as a full...
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