vue-splide icon indicating copy to clipboard operation
vue-splide copied to clipboard

Failed to compile when import css/core.

Open captain-zsa opened this issue 2 years ago • 0 comments

Checks

  • [X] Not a duplicate.
  • [X] Not a question, feature request, or anything other than a bug report directly related to Vue Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions

Version

0.6.12

Description

I have error Failed to compile when use import '@splidejs/vue-splide/css/core'; in component or in scss @import '@splidejs/vue-splide/css/core';

Now I use path.resolve(__dirname, './node_modules/@splidejs/vue-splide/dist/css/splide-core.min.css') in vue.config.js (in style-resources-loader) but I think, it not good practice. How I can import core to my vue3 project?

Reproduction Link

No response

Steps to Reproduce

  1. Create vue project
  2. Install vue-splide
  3. Create component .vue and add import '@splidejs/vue-splide/css/core'; in block <script> or add @import in my main scss file.

Expected Behaviour

importing core css file.

captain-zsa avatar Mar 21 '23 16:03 captain-zsa