Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

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
Kilo Guru

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

EdwinCoronado
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
Kilo Guru

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!

Hello @carey2 did Rafi's solution actually solve it for you? Or did you do something else?
I'm stuck at the same place. My app is pushed to a github repo, and I can't import it into another instance. I can't find the error details in the logs either. 

Hi @Syvo 
I hope when you say another instance, do you mean another pdi?
I dont think so you can move from one to another pdi as there might be a scope issue for the app.
But if you ask me for a company instances under one roof (eg:dev,test,prod),There should not be any issue.
You can just pull the published app and build,install it.