Skip to content

Import bootstrap5 scss resulting in error #2011

Open
@ChaerilM

Description

@ChaerilM

Welcome to the Selectize bug tracker. Thank you for taking the time to
make Selectize a better library!

Please keep in mind this repository has an important issue backlog and
that maintainers have limited time to fix issues, triage, and understand
them.

If you've never done so, please read the
guide to reporting issues
in the Wiki to help us better understand your issue.

Place an x in the checklist steps ([ ] becomes [x]) to demonstrate
you have done/verified all the steps you needed to do.

Thank you for reading this! You can now erase everything up to the
following dashes, and then complete what's after.

ISSUES THAT EITHER:

  • IGNORE THE ISSUE GUIDELINES
  • ERASE THE FOLLOWING TEMPLATE
  • DON'T FOLLOW THE PROPER NUMBERED FORMAT FOR STEPS TO REPRODUCE

COULD BE CLOSED.


I did:

  • Search for if my issue has already been submitted
  • Make sure I'm reporting something precise that needs to be fixed
  • Give my issue a descriptive and concise title
  • Create a minimal working example on JsFiddle or Codepen
    (or gave a link to a demo on the Selectize docs)
  • Indicate precise steps to reproduce in numbers and the result,
    like below

I tried making a simple import in my scss,

@import '~@selectize/selectize/dist/scss/selectize.bootstrap5.scss';

when i compile it i got error

SassError: Can't find stylesheet to import.
  ╷
1 │ @import "lib/bootstrap5/functions";
  │         ^^^^^^^^^^^^^^^^^^^^^^^^^^

in which it should use ..\lib instead of lib, or better just go for ~bootstrap/sass/... and get the file from there.

Steps to reproduce:

  1. import bs5 css
  2. run dev

Expected result:
compiled
Actual result:
error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions