nuxt / devtools

Unleash Nuxt Developer Experience
https://devtools.nuxt.com
MIT License
2.85k stars 153 forks source link

fix(ui): Added composable to build config #579

Closed ManUtopiK closed 7 months ago

ManUtopiK commented 7 months ago

We can't export detvools-ui-kit in external project without the composables. It throw this error when including the component NNotification :

 ERROR  Pre-transform error: Failed to resolve import "../composables/notification" from "../../node_modules/.pnpm/@nuxt+devtools-ui-kit@1.0.8_@nuxt+devtools@1.0.8_@vue+compiler-core@3.4.5_fuse.js@7.0.0_idb-k_hp7eiil6i4mqmffgl7noc2tkui/node_modules/@nuxt/devtools-ui-kit/dist/components/NNotification.vue". Does the file exist?

This pull request fix this issue. It doesn't seem to have an impact to the devtools client...