megasanjay / vue3-marquee

A simple marquee component with ZERO dependencies for Vue 3.
vue3-marquee.vercel.app
MIT License
481 stars 17 forks source link

Nuxt 3 Error: Pre-transform error: Missing "./dist/style.css" specifier in "vue3-marquee" package #297

Closed molaei2000 closed 3 months ago

molaei2000 commented 4 months ago

Describe the bug Nuxt 3.10.3 Vue 3.4 Error message: Pre-transform error: Missing "./dist/style.css" specifier in "vue3-marquee" package

To Reproduce I try to migrate from v3 to v4

  1. npm uninstall vue3-marquee

  2. npm install vue3-marquee@latest --save

  3. image

  4. npm run dev

  5. See error

  6. image

  7. image

Screenshots image

Desktop (please complete the following information):

megasanjay commented 3 months ago

Just saw the cause. I would remove the CSS import from your code. Migration instructions: https://vue3-marquee.vercel.app/introduction/v4