Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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:  PluginError: 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";
 │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • 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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(