yaml files of a certain structure produce incorrectly generated code.
See original GitHub issueReporting a bug?
In the repository at the link there is an en.yaml
file (it looks a bit weird, but that’s because I tried to keep it as simple as possible to catch the bug). After performing a yarn build with this en.yaml
, the build will not work (see screenshots below).
Note that with this en.yaml
the build is broken:
But with this en.yaml
(for example) the build is not broken:
Expected behavior
Working build. There should be no errors in the console and this page should appear:
Reproduction
https://github.com/schoonc/intlify--vue-i18n-next--issues--575
- Clone the repository.
$ yarn
$ yarn build
- Open
index.html
in browser. - See the console.
System Info
System:
OS: Linux 5.11 Ubuntu 21.04 (Hirsute Hippo)
CPU: (8) x64 AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx
Memory: 4.73 GB / 15.50 GB
Container: Yes
Shell: 5.1.4 - /bin/bash
Binaries:
Node: 14.17.0 - /usr/bin/node
Yarn: 1.22.5 - /usr/bin/yarn
npm: 7.18.1 - /usr/bin/npm
Browsers:
Chrome: 91.0.4472.77
Firefox: 89.0.2
npmPackages:
vue: ^3.0.0 => 3.1.4
vue-i18n: 9.1.7 => 9.1.7
Screenshot
Additional context
No response
Validations
- Read the Contributing Guidelines
- Read the Documentation
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (8 by maintainers)
Top Results From Across the Web
How to Fix Errors in YAML (.YML) Config Files - Knowledgebase
To fix errors in . yml files, you will need to use a YAML Parser. Paste your . yml configuration file into the...
Read more >Extra YAML file incorrectly converted to HTML #1299 - GitHub
I've .yaml file which I added as extra file, but rendered HTML is unreadable because it's not correctly rendered to HTML, ...
Read more >10 YAML tips for people who hate YAML | Enable Sysadmin
A pseudo-config is like pseudo-code. You don't have to worry about structure or indentation, parent-child relationships, inheritance, or nesting ...
Read more >Preventing YAML parsing vulnerabilities with snakeyaml in Java
A single missing (or extra) whitespace in a complex, data-heavy structure will cause failures when parsing YAML. This causes unexpected problems ...
Read more >How can I include a YAML file inside another? - Stack Overflow
No, standard YAML does not include any kind of "import" or "include" statement.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We have not given up on finding the cause. We will continue our efforts to find out. 😃
It works! Thank you!