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
I am with MacOS Venura, Node.js v22.11.0, jekyll 4.3.4, sass --version
1.81.0, sass-migrator --version 2.2.1 compiled with dart2js 3.5.4
When building a Jekyll site (with jekyll serve) on the computer, I've been getting this message for a while and thought I could best address it with the sass migrator:
Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:5558
throw error;
^
Bad state: No element
at Object.wrapException (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:1810:43)
at JavaScriptObject.get$first (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:15426:15)
at NodeModulesImporter.canonicalize$1 (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:43354:34)
at ImportCache__canonicalize_closure.call$0 (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:29756:28)
at Object._rootRun (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:4753:16)
at StaticClosure.<anonymous> (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:44954:16)
at _CustomZone.run$1$1 (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:18762:39)
at Object._runZoned (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:4840:89)
at Object.runZoned (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:4837:16)
at ImportCache._canonicalize$4 (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:29714:18) {
dartException: <ref *1> StateError {
message: 'No element',
'$thrownJsError': <ref *2> Bad state: No element
at Object.wrapException (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:1810:43)
at JavaScriptObject.get$first (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:15426:15)
at NodeModulesImporter.canonicalize$1 (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:43354:34)
at ImportCache__canonicalize_closure.call$0 (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:29756:28)
at Object._rootRun (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:4753:16)
at StaticClosure.<anonymous> (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:44954:16)
at _CustomZone.run$1$1 (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:18762:39)
at Object._runZoned (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:4840:89)
at Object.runZoned (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:4837:16)
at ImportCache._canonicalize$4 (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:29714:18) {
dartException: [Circular *1],
'$cachedTrace': _StackTrace {
_exception: [Circular *2],
_trace: 'Bad state: No element\n' +
' at Object.wrapException (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:1810:43)\n' +
' at JavaScriptObject.get$first (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:15426:15)\n' +
' at NodeModulesImporter.canonicalize$1 (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:43354:34)\n' +
' at ImportCache__canonicalize_closure.call$0 (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:29756:28)\n' +
' at Object._rootRun (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:4753:16)\n' +
' at StaticClosure.<anonymous> (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:44954:16)\n' +
' at _CustomZone.run$1$1 (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:18762:39)\n' +
' at Object._runZoned (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:4840:89)\n' +
' at Object.runZoned (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:4837:16)\n' +
' at ImportCache._canonicalize$4 (/usr/local/lib/node_modules/sass-migrator/sass-migrator.dart.js:29714:18)'
}
}
}
}
Firstly, I am not really sure whether 'your-entrypoint.scss' is the 'main.scss' file in the '_includes' folder. Part of it looks like this:
This shouldn't throw an internal error like this. @khofstadter, can you provide a reproduction? @jathak, can you try to track down what might cause this error?
Hey.
I am with MacOS Venura, Node.js v22.11.0, jekyll 4.3.4, sass --version
1.81.0, sass-migrator --version 2.2.1 compiled with dart2js 3.5.4
When building a Jekyll site (with
jekyll serve
) on the computer, I've been getting this message for a while and thought I could best address it with the sass migrator:Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
When trying
sass-migrator module --verbose '/Volumes/Doing/GitHub/biofeedbackartnetwork/_includes/main.scss
or
sass-migrator module --migrate-deps '/Volumes/Doing/GitHub/biofeedbackartnetwork/_includes/main.scss'
I get this error:
Firstly, I am not really sure whether 'your-entrypoint.scss' is the 'main.scss' file in the '_includes' folder. Part of it looks like this:
Thanks!
P.S. I have the same issue with another Jekyll website for which the files can be found here: https://github.com/khofstadter/enhancingaudiodescription.com
The text was updated successfully, but these errors were encountered: