-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
Description
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
- Run command:
symfony new_project --version="7.3.*" --webapp
- Installation proceeds until
symfony/asset-mapper
configuration 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