-
Notifications
You must be signed in to change notification settings - Fork 8
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
Issues with "yarn add" #22
Comments
Hello, Have you tried deleting the Is your project a monorepo? Did you add the Please, let me know if removing the lock file works, meanwhile I should move the Vue package to devDependencies. |
I've tried to delete both yarn.lock and node_modules and didn't work. And the project is not a monorepo also we are using quasar-ssg although not sure if it would affect anything. |
Did you mean I will push a commit with Let me know if this actually fixes the problem. |
The new release is published to npm registry. Could you try it ? |
Exactly. It successfully added this time via yarn! |
Great ! It was a stupid mistake on my part :s As the creator of |
Well my current intention with this package to make an image component dynamic during runtime without rebuilding the static sites everytime when an image got changed on server-side. Similar to Nuxt's client-only component ref: https://nuxtjs.org/docs/features/nuxt-components/#the-client-only-component EDIT: It works you basically can just do this in a project that uses
|
Quasar has a similar component called QNoSsr. SSG pre-render html like SSR mode but at build-time. Then hydration happens at client-side and all the application becomes interactive. So I'm not sure if you need lazy hydration for your use case. Are dynamic images fetched from an external source on the client side? |
Yes from AWS server and the data image is just like "image.png" and the full url will look like 'https://aws.com/image.png" in image src |
So the In this case, it depends if the first image displayed when a user first loads the page should be determined at client-side or not. If so, you can use the QNoSsr component. If not, lazy hydration can improve the |
Yes indeed. Lazy hydration semi-works though, however it improves the latency by quite a lot. About semi-working Lazy Hydration it doesn't work when you refresh the page (it shows the previous image that got changed on server-side already) but as an example you click on the image and go to a page and then go back to previous page (home page) then it actually shows the right image until you refresh the page again not sure what causes that honestly. |
@freddy38510 Basically top left image is incorrect it should show a different one, even if you refresh it wont work. But if you click on an image then go back to previous page then it will show the correct one. |
I can't reproduce it. What image are we talking about exactly ? I saw that RouterView is wrapped in a Suspense component. I should add a test for this use case, because I don't know how the LazyHydrationWrapper could behave. For information, hydration only occurs at first-load, including if your refresh the page. Your app works like a regular SPA after hydration. When you go back to previous page, there is no hydration, your app is already interactive. Edit: I got it, now I see the image you were talking about. I will investigate it. |
Hey I have hard time adding this package to a project by "yarn add vue3-lazy-hydration". (If possible I would like to avoid npm)
I am keep getting this error:
"error An unexpected error occurred: "expected hoisted manifest for "vue3-lazy-hydration#vue#@vue/server-renderer#@vue/compiler-ssr""."
Trace:
Trace: Invariant Violation: expected hoisted manifest for "vue3-lazy-hydration#vue#@vue/server-renderer#@vue/compiler-ssr" at invariant (C:\Users\xxx\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:2318:15) at _loop2 (C:\Users\xxx\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:91029:9) at PackageHoister.init (C:\Users\xxx\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:91099:19) at PackageLinker.getFlatHoistedTree (C:\Users\xxx\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:48549:20) at PackageLinker.<anonymous> (C:\Users\xxxAppData\Roaming\npm\node_modules\yarn\lib\cli.js:48560:27) at Generator.next (<anonymous>) at step (C:\Users\xxx\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:310:30) at C:\Users\xxx\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:328:14 at new Promise (<anonymous>) at new F (C:\Users\xxx\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:5305:28)
Yarn version: v1.22.19
Things I've tried:
The text was updated successfully, but these errors were encountered: