nuxt-modules / algolia

🔎 Algolia module for Nuxt
https://algolia.nuxtjs.org/
MIT License
189 stars 35 forks source link

[nuxt] [runtimeConfig] You are trying to access a public runtime config value (`algolia`) directly from the top level. This currently works (for backward compatibility with Nuxt 2) but this compatibility layer will be removed in v3.5. Instead, you can update `config['algolia']` to `config.public['algolia']`. #146

Closed agracia-foticos closed 1 year ago

agracia-foticos commented 1 year ago

Version

Reproduction Link

https://stackblitz.com/edit/nuxt-starter-rtn6e3

Steps to reproduce

What is Expected?

When i upgrade to nuxt 3.4.0 the module of algolia throws (node:15923) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1573) warning:60 [nuxt] [runtimeConfig] You are trying to access a public runtime config value (algolia) directly from the top level. This currently works (for backward compatibility with Nuxt 2) but this compatibility layer will be removed in v3.5. Instead, you can update config['algolia'] to config.public['algolia'].

What is actually happening?

agracia-foticos commented 1 year ago

Reproduction LINK

https://stackblitz.com/edit/nuxt-starter-rtn6e3

agracia-foticos commented 1 year ago

Fail in stackblitz image

Baroshem commented 1 year ago

Hey @agracia-foticos

Thanks for reporting this issue! I will take a look at it in the upcoming days :)

RomanSkrypnik commented 1 year ago

Facing the same issue

Baroshem commented 1 year ago

Hey, I have released a 1.7.0 version with the updated configuration. You should not experience this issue anymore :)

@agracia-foticos if you test it and it works, you can close this issue :)

agracia-foticos commented 1 year ago

Works! i close the issue