starter
starter copied to clipboard
Brand new repo - enum issue on pre-build
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
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"
]
},