drunomics / nuxtjs-drupal-ce

A Nuxt module to easily connect Drupal via custom elements.
https://lupus-decoupled.org/
MIT License
24 stars 4 forks source link

Alpha release used in a project results in useRuntimeConfig is not defined #113

Closed TurtlBbx closed 1 year ago

TurtlBbx commented 1 year ago

When using the alpha release in a new Nuxt 3 project, there are errors like "useRuntimeConfig is not defined". We need to add explicit imports inside src/composables/useDrupalCe.ts file.

I looked at other Nuxt 3 modules and they all have explicit imports defined, so it must be a requirement. This isn't documented in Nuxt's Module Author Guide.

TurtlBbx commented 1 year ago

Tested it. PR fixes the issue.