cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Running grunt within smartedit fails with error

0 Kudos
364

Hi all,
I would like to build my smartedit customizations with grunt, but getting this error while executing grunt within my custom smartedit folder:

fancysmartedit % grunt
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module './smartedit-build'
>> Require stack:
>> - /<smarteditPath>/Gruntfile.js
>> - /<smarteditPath>/node_modules/grunt/lib/grunt/task.js
>> - /<smarteditPath>/node_modules/grunt/lib/grunt.js
>> - /<path>/.nvm/versions/node/v13.14.0/lib/node_modules/grunt-cli/bin/grunt
Warning: Task "default" not found. Use --force to continue.
Aborted due to warnings.
Execution Time (2023-11-16 08:23:57 UTC+1)

Having SAP Commerce Version 2205 and using macOS.

Those documentations didn't help me:

I'm running out of ideas - is there anybody who might help me?

My Gruntfile.js is starting like this:

module.exports = (grunt) => {
    require('time-grunt')(grunt);
    require('./smartedit-build')(grunt).load();<br>

Thanks a lot.

Accepted Solutions (0)

Answers (0)