Get 2024 Templates Mega Bundle!19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets
Get for 99$

gulp -demo1 error


Hello,

When I run gulp --demo1 for asp.net core, I get the following error. I use Metronic 8.2.3 is the latest version and Windows 11 Pro. I tried it on a MacBook Pro and got the same error. How can I solve this?"

Thank you,

Mustafa

Using gulp config file: "../../gulp.config.js"
[16:31:00] Using gulpfile C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\gulpfile.js
[16:31:00] Starting 'default'...
[16:31:00] Starting 'cleanTask'...
[16:31:00] Finished 'cleanTask' after 68 ms
[16:31:00] Starting 'buildBundleTask'...
[16:31:00] Finished 'buildBundleTask' after 122 ms
[16:31:00] Finished 'default' after 195 ms
Error in plugin "sass"
Message:
node_modules\prism-themes\themes\prismjs.bundle.css
Error: TypeError: null: type 'JSNull' is not a subtype of type 'String'
C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:6365
throw error;
^

Error: TypeError: null: type 'JSNull' is not a subtype of type 'String'
at Object.wrapException (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:2166:43)
at Object._failedAsCheck (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:3646:15)
at Rti._generalAsCheckImplementation [as _as] (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:3635:9)
at ArrayIterator.get$current (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:32948:50)
at Object.get$current$x (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:830:43)
at _SyncStarIterator.moveNext$0 (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:35808:41)
at Object.List_List$from (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:6379:49)
at Object.List_List$unmodifiable (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:6402:47)
at Object._parseImporter (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:27302:51)
at C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:27068:22 {
dartException: <ref *1> PluginError: TypeError: null: type 'JSNull' is not a subtype of type 'String'
at Object.wrapException (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:2166:43)
at Object._failedAsCheck (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:3646:15)
at Rti._generalAsCheckImplementation [as _as] (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:3635:9)
at ArrayIterator.get$current (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:32948:50)
at Object.get$current$x (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:830:43)
at _SyncStarIterator.moveNext$0 (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:35808:41)
at Object.List_List$from (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:6379:49)
at Object.List_List$unmodifiable (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:6402:47)
at Object._parseImporter (C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:27302:51)
at C:\Users\MustafaHepsarilar\source\repos\UI\testUI\metronic_asp.net-core_v8.2.3\Starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:27068:22 {
formatted: "Error: TypeError: null: type 'JSNull' is not a subtype of type 'String'",
status: 3,
messageFormatted: '\x1B[4mnode_modules\\prism-themes\\themes\\prismjs.bundle.css\x1B[24m\n' +
"Error: TypeError: null: type 'JSNull' is not a subtype of type 'String'",
messageOriginal: "TypeError: null: type 'JSNull' is not a subtype of type 'String'",
relativePath: 'node_modules\\prism-themes\\themes\\prismjs.bundle.css',
message: 'node_modules\\prism-themes\\themes\\prismjs.bundle.css\n' +
"Error: TypeError: null: type 'JSNull' is not a subtype of type 'String'",
__safety: undefined,
_stack: undefined,
plugin: 'gulp-dart-sass',
showProperties: true,
showStack: false,
domainEmitter: PassThrough {
_events: {
close: [Function: onclose],
error: undefined,
prefinish: [Function: prefinish],
finish: [Function: onfinish],
drain: undefined,
data: [Function: ondata],
end: [
[Function: bound onceWrapper] { listener: [Function: onend] },
[Function: onend]
],
readable: undefined,
unpipe: [Function: remove]
},
_readableState: ReadableState {
highWaterMark: 16,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [
Sink {
_events: [Object],
_writableState: [WritableState],
_maxListeners: undefined,
_eventsCount: 4,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false
}
],
awaitDrainWriters: null,
[Symbol(kState)]: 194521357
},
_writableState: WritableState {
highWaterMark: 16,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 17580301,
[Symbol(kBufferedValue)]: null
},
allowHalfOpen: true,
_maxListeners: 0,
_eventsCount: 6,
add: [Function: add],
isEmpty: [Function: isEmpty],
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
domainThrown: false,
'$cachedTrace': _StackTrace {
_exception: [Circular *1],
_trace: "Error: TypeError: null: type 'JSNull' is not a subtype of type 'String'\n" +
' at Object.wrapException (C:\\Users\\MustafaHepsarilar\\source\\repos\\UI\\testUI\\metronic_asp.net-core_v8.2.3\\Starterkit\\_keenthemes\\tools\\node_modules\\sass\\sass.dart.js:2166:43)\n' +
' at Object._failedAsCheck (C:\\Users\\MustafaHepsarilar\\source\\repos\\UI\\testUI\\metronic_asp.net-core_v8.2.3\\Starterkit\\_keenthemes\\tools\\node_modules\\sass\\sass.dart.js:3646:15)\n' +
' at Rti._generalAsCheckImplementation [as _as] (C:\\Users\\MustafaHepsarilar\\source\\repos\\UI\\testUI\\metronic_asp.net-core_v8.2.3\\Starterkit\\_keenthemes\\tools\\node_modules\\sass\\sass.dart.js:3635:9)\n' +
' at ArrayIterator.get$current (C:\\Users\\MustafaHepsarilar\\source\\repos\\UI\\testUI\\metronic_asp.net-core_v8.2.3\\Starterkit\\_keenthemes\\tools\\node_modules\\sass\\sass.dart.js:32948:50)\n' +
' at Object.get$current$x (C:\\Users\\MustafaHepsarilar\\source\\repos\\UI\\testUI\\metronic_asp.net-core_v8.2.3\\Starterkit\\_keenthemes\\tools\\node_modules\\sass\\sass.dart.js:830:43)\n' +
' at _SyncStarIterator.moveNext$0 (C:\\Users\\MustafaHepsarilar\\source\\repos\\UI\\testUI\\metronic_asp.net-core_v8.2.3\\Starterkit\\_keenthemes\\tools\\node_modules\\sass\\sass.dart.js:35808:41)\n' +
' at Object.List_List$from (C:\\Users\\MustafaHepsarilar\\source\\repos\\UI\\testUI\\metronic_asp.net-core_v8.2.3\\Starterkit\\_keenthemes\\tools\\node_modules\\sass\\sass.dart.js:6379:49)\n' +
' at Object.List_List$unmodifiable (C:\\Users\\MustafaHepsarilar\\source\\repos\\UI\\testUI\\metronic_asp.net-core_v8.2.3\\Starterkit\\_keenthemes\\tools\\node_modules\\sass\\sass.dart.js:6402:47)\n' +
' at Object._parseImporter (C:\\Users\\MustafaHepsarilar\\source\\repos\\UI\\testUI\\metronic_asp.net-core_v8.2.3\\Starterkit\\_keenthemes\\tools\\node_modules\\sass\\sass.dart.js:27302:51)\n' +
' at C:\\Users\\MustafaHepsarilar\\source\\repos\\UI\\testUI\\metronic_asp.net-core_v8.2.3\\Starterkit\\_keenthemes\\tools\\node_modules\\sass\\sass.dart.js:27068:22'
}
}
}

Node.js v20.11.0


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


It sounds like you're encountering a consistent issue across different platforms. One potential solution is to ensure all your dependencies are up-to-date and properly configured. Additionally, sometimes hidden files can cause issues, so make sure to check for them. For help with this on a Mac, you can refer to this guide on how to make hidden files permanently visible This might help you identify any hidden configurations causing the problem.



Hi,

Thank you for your feedback.

A conflict with the latest version of the dart-sass plugin likely causes this error. Try adding the following code to your package.json:


"resolutions": {
"gulp-dart-sass/sass": "1.70.0"
}


After adding this, remove the node_modules, package-lock.json, and yarn.lock files, and then run yarn and gulp --demo1 again. This should force the use of Dart Sass version 1.70.0 and resolve any conflicts with the latest version of the 3rd party plugin.

Let me know if you need further assistance

Regards,
Lauris Stepanovs,
Keenthemes Support Team



I had the same problem and this solution worked for me. Thank you


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(