Clone an existing Git Repo in ServiceNow IDE

carey2
Tera Contributor

Hey all,

    Has anyone successfully tested converting an existing ServiceNow App into a Fluent App and importing it from a git Repo into ServiceNow IDE?

 

So far I have managed to convert an existing App to Fluent using the Convert functionality and then push it to a GitHub Repo from the instance the App was first created on. It has some bugs and so won't build yet but structurally its a Fluent App. It has the correct package.json, now.config.json and src/fluent folder structure.  

 

However, I now want to work on that same app from a different instance (to test the Build Agent). I have connected the other instance to the same Repo (credentials and everything are good) and have confirmed that I can access that Repo successfully. When I try and clone from that repo I get the error : No fluent app found at https://github.com/<username/reponame>

 

Does anyone know what checking is done to look for a Fluent app and why my App that was converted with the IDE isn't being picked up? Anyone any ideas on things I could try to diagnose the issue?  

1 ACCEPTED SOLUTION

rafi_kothapalli
Tera Contributor

I was having the same issue.After hours of debugging and reverting my commits in git repo.
Finally the now.config.json file seems to be the culprit:
It should be in the below format:
{
"scope": "x_test_abc_test,
"scopeId": "1ae2d166339323210ad466832cd5c7b17",
"name": "Test App",
"tsconfigPath": "./src/server/tsconfig.json"
}

Remove any other extra lines which got added 

In my case,I had to remove below part:
"accessControls": {
"runtimeAccessTracking": "none"
},
"licensing": {
"enforceLicense": "none"
}

And then finally it worked!
Hope it helps!

View solution in original post

10 REPLIES 10

carey2
Tera Contributor

Rafi's solution did fix the issue yes. I opened the now.config.json file in GitHub and removed any extra lines and added in the tsConfigpath. Once I did that I was no longer getting the "No fluent app found at..." error message that pops up at the bottom right corner of the screen in ServiceNow IDE and was able to retrieve the code from the Repo. 

I am still struggling to exactly what I want to do with my imported app but that is a different problem for another time.