nuxt-icons icon indicating copy to clipboard operation
nuxt-icons copied to clipboard

[Question] Can I use `nuxt-icons` with nuxt extends?

Open szulcus opened this issue 2 years ago • 1 comments

Nuxt extends docs: https://nuxt.com/docs/examples/advanced/config-extends/

When I move my ~/assets/icons directory to base folder and axtend Nuxt with ./base, icons is didn't work. I tried to install the module directly in base, but then the module is not loaded at all. What can I do wrong?

image

szulcus avatar Dec 05 '22 15:12 szulcus

We get the same error, when we extend from a module.

@gitFoxCode do you have already an idea how to fix it or should I dig into it and provide a PR?

Workaround

We created a symlink in the root project. In your case the following might work.

cd assets
ln -s ../base/assets/icons

This restricts you to load the icons only from one location. But it is a workaround.

vacijj avatar Jan 26 '23 07:01 vacijj