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

Error While Compiling HTML template demo41 using Gulp


Im using version: "8.2.5",


const gulpConfig = {
name: "metronic",
desc: "Gulp build config",
version: "8.2.5",


I changed the gulp file & config to remove jquery and got this error while compiling assests using Gulp :


sh-3.2# gulp --demo41
Using gulp config file: "../../gulp.config.js"
[17:13:57] Using gulpfile /Users/xxxx/code/metronic41/tools/gulpfile.js
[17:13:57] Starting "default"...
[17:13:57] Starting "cleanTask"...
[17:13:57] Finished "cleanTask" after 55 ms
[17:13:57] Starting "buildBundleTask"...
[17:13:57] Finished "buildBundleTask" after 184 ms
[17:13:57] Finished "default" after 244 ms
(node:9536) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
Error in plugin "sass"
Message:
../demo41/src/sass/_init.scss
Error: Invalid argument(s): join(null, "../../../tools/node_modules/bootstrap/scss/functions"): part 0 was null, but part 1 was not.
â•·
19 │ @import "../../../tools/node_modules/bootstrap/scss/functions";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
../demo41/src/sass/_init.scss 19:9 @import
../demo41/src/sass/style.bundle.css 6:9 root stylesheet
/Users/alexander/code/metronic41/tools/node_modules/sass/sass.dart.js:6306
throw error;
^

Error: Invalid argument(s): join(null, "../../../tools/node_modules/bootstrap/scss/functions"): part 0 was null, but part 1 was not.
â•·
19 │ @import "../../../tools/node_modules/bootstrap/scss/functions";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
../demo41/src/sass/_init.scss 19:9 @import
../demo41/src/sass/style.bundle.css 6:9 root stylesheet
at Object.wrapException (/Users/xxx/code/metronic41/tools/node_modules/sass/sass.dart.js:2119:43)
at Object._validateArgList (/Users/alexander/code/metronic41/tools/node_modules/sass/sass.dart.js:8749:17)
at Context.join$16 (/Users/alexander/code/metronic41/tools/node_modules/sass/sass.dart.js:40742:9)
at Object.join (/Users/alexander/code/metronic41/tools/node_modules/sass/sass.dart.js:29193:31)
at NodeImporter._resolveLoadPath$2 (/Users/alexander/code/metronic41/tools/node_modules/sass/sass.dart.js:100787:16)
at NodeImporter._resolveLoadPathFromUrl$2 (/Users/alexander/code/metronic41/tools/node_modules/sass/sass.dart.js:100772:76)
at /Users/alexander/code/metronic41/tools/node_modules/sass/sass.dart.js:100744:48
at _wrapJsFunctionForAsync_closure.$protected (/Users/alexander/code/metronic41/tools/node_modules/sass/sass.dart.js:4899:15)
at _wrapJsFunctionForAsync_closure.call$2 (/Users/alexander/code/metronic41/tools/node_modules/sass/sass.dart.js:34081:12)
at Object._asyncStartSync (/Users/alexander/code/metronic41/tools/node_modules/sass/sass.dart.js:4863:20) {
dartException: <ref *1> PluginError: Invalid argument(s): join(null, "../../../tools/node_modules/bootstrap/scss/functions"): part 0 was null, but part 1 was not.
&acirc;&#149;&middot;
19 &acirc;&#148;&#130; @import "../../../tools/node_modules/bootstrap/scss/functions";
&acirc;&#148;&#130; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


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)


Hi Alexander Arda

You can try removing the node_modules directory and the package-lock.json or yarn.lock file, then reinstalling the dependencies using the Yarn command. After that, retry the gulp --demo41 command to compile. Here are the steps:

Delete the node_modules directory:

rm -rf node_modules

Remove the package-lock.json or yarn.lock file:

rm package-lock.json # If using npm
rm yarn.lock # If using Yarn

Reinstall the dependencies using Yarn:

yarn install

Retry the compilation with Gulp:

gulp --demo41

If you continue to encounter issues, please let us know!



Hi Faizal,

Seems error is gone, thanks!
I will check more detail and let you know the result.



FYI, i did rollback all configuration and the error still there.


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  :(