Cookcademy 3 - question about an error message

Hi everyone, I’m getting Failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs) error in some View line(I even copy pasted all the code, still getting same error). I’m stuck here, how can I bypass this error and why exactly is it shown?

import SwiftUI

struct RecipeCategoryGridView: View {
  private var recipeData = RecipeData()
  
  var body: some View {
    NavigationView {
      LazyVGrid(columns: [GridItem()], content: {
        ForEach(MainInformation.Category.allCases,
                id: \.self) { category in
          Text(category.rawValue)
        }
      })
      .navigationTitle("Categories")
    }
  }
}

struct RecipeCategoryGridView_Previews: PreviewProvider {
  static var previews: some View {
    RecipeCategoryGridView()
  }
}

found my answer. Thanks