0

I have published very simple toast component package in npm , here with vite , vue 3 and typescript .

you can see Repo here .

there are two problems .

first problem is that when you install this package , styles doesn't apply

I can see style.css file in node-modules/my-package/dist/style.css But it can't be imported .

How can I fix this ?

Another problem is that when I try to import installed package component like this

import { ToastNot } from 'vue3-toast-notification';

I get Typescript error .

enter image description here

How can I fix this to?

morteza mortezaie
  • 1,002
  • 14
  • 37
  • 1
    Does this answer your question? [Vite Vue 3 library build doesn't implicitly include dist/style.css](https://stackoverflow.com/questions/72555787/vite-vue-3-library-build-doesnt-implicitly-include-dist-style-css) – Duannx Aug 08 '22 at 02:29
  • no............................. – morteza mortezaie Aug 08 '22 at 06:40

0 Answers0