starter icon indicating copy to clipboard operation
starter copied to clipboard

Brand new repo - enum issue on pre-build

Open Swader opened this issue 2 months ago • 2 comments

Getting this error on a fresh clone of the starter, running mint dev.

mint dev
🚨 Invalid docs.json:
#.contextual.options[5]: Invalid type. Field did not match any types in union
  1:
    #.contextual.options[5]: Invalid enum value. Expected 'copy' | 'view' | 'chatgpt' | 'claude' | 'perplexity', received 'mcp'
  2:
    #.contextual.options[5]: Invalid type. Expected field to be of type 'object', received 'string'
#.contextual.options[6]: Invalid type. Field did not match any types in union
  1:
    #.contextual.options[6]: Invalid enum value. Expected 'copy' | 'view' | 'chatgpt' | 'claude' | 'perplexity', received 'cursor'
  2:
    #.contextual.options[6]: Invalid type. Expected field to be of type 'object', received 'string'
#.contextual.options[7]: Invalid type. Field did not match any types in union
  1:
    #.contextual.options[7]: Invalid enum value. Expected 'copy' | 'view' | 'chatgpt' | 'claude' | 'perplexity', received 'vscode'
  2:
    #.contextual.options[7]: Invalid type. Expected field to be of type 'object', received 'string'
error prebuild step failed

Removing these values from docs.json makes it work.

Swader avatar Oct 18 '25 05:10 Swader

@Swader

Phum7895 avatar Oct 30 '25 09:10 Phum7895

Hey @Swader, thanks for bringing this up, I think this could be an issue to the verison of Mint you might be running, would you mind trying to run a mint version then trying a mint update. Also are these the values you see in your docs.json for the contextual field:

"contextual": {
    "options": [
     "copy",
     "view",
     "chatgpt",
     "claude",
     "perplexity",
     "mcp",
     "cursor",
     "vscode"
   ]
  },

RoyceWilliams510 avatar Nov 10 '25 19:11 RoyceWilliams510