Skip to content

YAML syntax error in csrf.yaml during Symfony 7.3 webapp installation #61247

@xVinniVx

Description

@xVinniVx

Symfony version(s) affected

7.3.*

Description

Bug Report

Summary

Installation of Symfony 7.3 webapp fails with YAML syntax error in config/packages/csrf.yaml file during the importmap:require script execution.

Environment

  • Symfony Version: 7.3.*
  • Installation Command: symfony new fashion_7_3_1 --version="7.3.*" --webapp

Error Details

Configuring symfony/asset-mapper (>=6.4): From github.com/symfony/recipes:main
Executing script importmap:require [KO]
[KO]
Script importmap:require returned with error code 1
!!
!! In FileLoader.php line 177:
!!
!! The file "E:\PLANETA\fashion_7_3_1/config/packages/csrf.yaml" does not contain valid YAML: A colon cannot be used i
!! n an unquoted mapping value at line 6 (near " token_id: submit") in E:\PLANETA\fashion_7_3_1/config/packages/csr
!! f.yaml (which is being imported from "E:\PLANETA\fashion_7_3_1\src\Kernel.php").
!!
!!
!! In YamlFileLoader.php line 786:
!!
!! The file "E:\PLANETA\fashion_7_3_1/config/packages/csrf.yaml" does not contain valid YAML: A colon cannot be used i
!! n an unquoted mapping value at line 6 (near " token_id: submit").
!!
!!
!! In Parser.php line 800:
!!
!! A colon cannot be used in an unquoted mapping value at line 6 (near " token_id: submit").
!!
!!

The installation fails during the symfony/asset-mapper configuration step with the following error:

Expected Behavior

The symfony new command should complete successfully without YAML syntax errors, creating a working Symfony 7.3 webapp project.

Actual Behavior

Installation fails with YAML parsing error in the csrf.yaml configuration file at line 6, specifically around token_id: submit.

Steps to Reproduce

  1. Run command: symfony new_project --version="7.3.*" --webapp
  2. Installation proceeds until symfony/asset-mapper configuration
  3. importmap:require script fails with YAML syntax error

How to reproduce

Installation Command: symfony new fashion_7_3_1 --version="7.3.*" --webapp

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy