question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

yaml files of a certain structure produce incorrectly generated code.

See original GitHub issue

Reporting 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: image

But with this en.yaml (for example) the build is not broken: image

Expected behavior

Working build. There should be no errors in the console and this page should appear: image

Reproduction

https://github.com/schoonc/intlify--vue-i18n-next--issues--575

  1. Clone the repository.
  2. $ yarn
  3. $ yarn build
  4. Open index.html in browser.
  5. 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

image image

Additional context

No response

Validations

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
kazuponcommented, Aug 9, 2021

I did some research on the source map generated by the generator. Unfortunately, I couldn’t figure out why. 😞

We have not given up on finding the cause. We will continue our efforts to find out. 😃

1reaction
schoonccommented, Aug 14, 2021

It works! Thank you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found