You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
base case when i try to run the following command , it throws this error
PS C:\Users\coltong\source\repos\Ovations_v2\frontend\platform\src\styles> sass-migrator --migrate-deps module index.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!
not sure why it cant find the bootstrap _functions.scss file, or why it really needs to migrate a third party file. it will get overwritten every time i pull packages from npm anyways
if i migrate one of my own custom override files, it works, but only adds the new map commands, but does not add the 'with clause' conversions for bootstrap overrides. the following is the file for after i ran the migrator. (it has no with clause in the overrides)
The migrator does not work well when you are depending on unmigrated code that won't be migrated itself (e.g. third party code that's outside of your control). Bootstrap in particular does a lot of things with @import that makes it difficult to migrate code that depends on it.
If you use a single entrypoint for all of your Bootstrap imports and then migrate the rest of your code, but not that entrypoint, you should be able to get the migrator to work, but you may be better off waiting for Bootstrap itself to migrate (see twbs/bootstrap#29853)
Several issues:
similar to this other #127
my main indes.scss file, which has all the third party libraries (like boostrap v5) and my own overrides
not sure why it cant find the bootstrap _functions.scss file, or why it really needs to migrate a third party file. it will get overwritten every time i pull packages from npm anyways
I am not sure why this is tool is not working at all in my case? are others having issues when using bootstrap v5 in their sass files?
The text was updated successfully, but these errors were encountered: