A problem with Rojo project file

The Rojo documentation said that if the Instance is a Roblox Service, $className is optional. So the problem is when I type this in default.project.json:

{
  "name": "Zombie",
  "tree": {
    "$className": "DataModel",
    
    "ServerScriptService":{
      "$path": "src/ServerScriptService",
      "$ignoreUnknownInstances": true
    }
  }
}

it gives me a Folder instance name “ServerScriptService” instead of the ServerScriptService service. Is it a Rojo bug?

1 Like

I’m just getting started with Rojo and am having similar issues. Deleting the things that get synced from the place in Studio, then reconnecting to Rojo or just making a change in VS Code to make Rojo re-sync sometimes fixes it.

Here’s my abbreviated project file:

{
  "name": "nameofdagame",
  "tree": {
    "$className": "DataModel",

    "ServerScriptService": {
      "Source": {
        "$path": "src/ServerScriptService"
      }
    }

  }
}

This correctly syncs files from my file system in src/ServerScriptService into a folder called “Source” in ServerScriptService.

1 Like