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

speedkitHydate runtime error #836

Closed
bartlwojcik opened this issue Jul 19, 2023 · 2 comments
Closed

speedkitHydate runtime error #836

bartlwojcik opened this issue Jul 19, 2023 · 2 comments

Comments

@bartlwojcik
Copy link

Description
After package installation and configuration I tried to use the speedkitHydrate, but when I import it I got this error:

ERROR in ./node_modules/nuxt-speedkit/runtime/hydrate.mjs 8:9-27
Can't import the named export 'hydrateWhenVisible' from non EcmaScript module (only default export is available)

Reproduction

  1. Install nuxt-speedkit and add basic configuration
  2. Import speedkitHydrate in a page file

Expected behavior
There should be no error

Versions:

  • nuxt 2.15.8
  • nuxt-speedkit 2.2.2
@ThornWalli
Copy link
Contributor

Hello @bartlwojcik,

Which node version are you using?

Have you tried to include vue-lazy-hydration in the build.transpile?

Maybe also consider to update nuxt to 2.17.x?

@bartlwojcik
Copy link
Author

Hello @ThornWalli,

adding vue-lazy-hydration to the build.transpile didn't help, but updating nuxt and vue did.

Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants