Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

7 REPLIES 7

EdwinCoronado
ServiceNow Employee
ServiceNow Employee

hi @carey2 , what version of IDE are you on? IDE looks for `now.config.json` file at the root of the project to determine "this is a Fluent (ServiceNow SDK) app"

thanks for responding Edwin. I'm using IDE v 1.0.0 which looks to be the latest available to me. I do have a now.config.json file and it looks correct (to my amateur understanding) and the Build Agent Claude AI tells me that the content of the file looks correct if I paste the contents into the Build Agent chat and ask if there are errors in the file. 

 

The file contents are this (some names changed for security reasons): 

{
"scope": "x_fnl_acme_fina",
"scopeId": "f6db3d3147be665041ba8f9f016d4359",
"name": "My Converted App Name",
"licensing": {
"enforceLicense": "none"
},
"logo": "dfdbf57147be665041ba8f9f016d439b"
}

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!