Skip to content

[REQUEST] Ability to ignore specific dependencies #271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
androidacy-user opened this issue Feb 17, 2025 · 1 comment
Open

[REQUEST] Ability to ignore specific dependencies #271

androidacy-user opened this issue Feb 17, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request needs info Awaiting a response with more info from the reporter

Comments

@androidacy-user
Copy link

Hello!

The migrator keeps erroring out because bootstrap 5 uses deprecated functionality, and we'd like to ignore that (we don't control that dependency). Unless I missed something, that's not currently possible

See error:

> sass-migrator module --migrate-deps .\resources\sass\app.scss

Error: The migrator wants to rename a member in node_modules\bootstrap\scss\_functions.scss, but it is not being migrated. You should re-run the migrator with --migrate-deps or with node_modules\bootstrap\scss\_functions.scss as one of your entrypoints.
Migration failed!
@nex3 nex3 added the enhancement New feature or request label Feb 18, 2025
@jathak
Copy link
Member

jathak commented Feb 18, 2025

Are you referencing any members from Bootstrap that start with an underscore (or a dash, they're equivalent)? I'm pretty sure that's the only case where the migrator would want to rename a member when the --remove-prefix flag is not used.

If so, then I don't think it's possible to migrate your @import of Bootstrap to @use, since members starting with an underscore are private when using the module system.

We should probably update this error message to specify which member and possibly add a clarification about private members.

@jathak jathak added the needs info Awaiting a response with more info from the reporter label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs info Awaiting a response with more info from the reporter
Projects
None yet
Development

No branches or pull requests

3 participants