cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Web IDE Full Stack (trial account) CF Build--Fatal Error: Unable to find local grunt

kathie_boyer-wright
Discoverer
0 Kudos

Hi there,

I am attempting to Build and Deploy a simple MTA in my trial CF account. The project contains only a single HTML5 module (I selected ver. 1.44 based on other Q&A Postings). I am receiving the error: "Fatal error: unable to find local grunt" Here is the console.log output:

Thanks in advance for the help.

KW

kathie_boyer-wright
Discoverer
0 Kudos

Update: I see that this is a common error and that a fix for standalone modules has been identified here: https://www.sap.com/developer/tutorials/webide-grunt-basic.html.

However, these fixes do not work for HTML5 Modules added to MTA projects.

Accepted Solutions (0)

Answers (2)

Answers (2)

nlara1
Participant
0 Kudos

I had the same error today and wanted to post the solution in case it might help someone. I solved this issue by creating a temporary folder, temp_web, and moved all of the contents of my HTML5 module, web, into the temp_web folder. I then deleted web and renamed temp_web to web.

I think the issue is that if you create a new HTML5 Module by using the template it expects a Gruntfile. I thought deleting the file would be enough but that was not the case. There is likely hidden files that also need to be deleted but with the solution above I was able to successfully build my MTA.

former_member189220
Active Contributor
0 Kudos

Hello Kathie,

This is quite strange error message. Is Gruntfile.js added to your project as it has been recommended in the pointed by you tutorial?

Please try to add the content of the Gruntfile.js as it is explained in this blog - Auto documentation using Grunt in the Multi-Cloud WebIDE.

This tutorial - Adding Grunt Plugins (TypeScript) in SAP Web IDE - might be helpful about the content of the Gruntfile.js which will work for your project.

Regards,