daliborgogic / daliborgogic/interpolation

Error: Failed to resolve directive: interpolation

Open
#5 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
8
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Hi there,
Thanks a lot for your Nuxt3 package - it's perfect for displaying links from third-party content :bow:
I had a bit of trouble setting the module up as I followed the instructions on the README.md and then when trying to run the project I would get an error along the lines of:
```
[Vue warn]: Failed to resolve directive: interpolation
[nitro] [unhandledRejection] TypeError: Cannot read properties of undefined (reading 'getSSRProps')
at Module.ssrGetDirectiveProps (.../node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:489:40)
at _sfc_ssrRender (.../index.vue:161:165)
at renderComponentSubTree (.../node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:707:9)
at .../node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:651:25
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

```
However, adding `nuxt3-interpolation` to the `modules: []` section of my `nuxt.config.ts` fixed this.
I'm sure it's obvious that this is needed, but as I had never seen a `buildModules` directive before I assumed this was all that was needed.

Anyway, there's not actually an issue. But I think the README.md should be updated to include mention of adding the package name to the `modules` section. I've left the title as-as to help anyone else having the same issue find this thread easily.

Thanks again.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.