`ComparisonError: ... error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type map[string]interface {}`
IntermediateTroubleshootingManifest Generation & ComparisonError
Answer
Likely causes → A rendered file contains something that is not a Kubernetes object: a stray YAML document with only a string, a values file inside the manifests path, a README in YAML, or broken indentation.
Diagnose → argocd app manifests web --source git or local render; look for documents without apiVersion/kind.
Fix → Remove non-manifest YAML from the path, or exclude it with directory.exclude, or fix the template output.
Prevent → kubeconform in CI rejects non-object documents.
More on Manifest Generation & ComparisonError
`ComparisonError: Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = Manifest generation error (cached): ...`Intermediate`rpc error: code = Unknown desc = `helm template . --name-template web --namespace web ... --include-crds` failed exit status 1: Error: template: web/templates/deployment.yaml:24:20: executing "web/templates/deployment.yaml" at <.Values.image.tag>: nil pointer evaluating interface {}.tag`Beginner`Error: open envs/prod/values.yaml: no such file or directory` when the app renders.Beginner`Error: values file '../../envs/prod/values.yaml' resolved to outside repository root`IntermediateKustomize app fails: `kustomize build ... failed exit status 1: Error: accumulating resources: accumulation err='accumulating resources from '../../base': ... must build at directory: not a valid directory'`.Beginner`Error: trouble configuring builtin HelmChartInflationGenerator with config: ... must specify --enable-helm`Intermediate