kazupon / vue-i18n

:globe_with_meridians: Internationalization plugin for Vue.js

Home Page:https://kazupon.github.io/vue-i18n/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YAML parser doesn't process valid YAML

TheDutchCoder opened this issue · comments

Reporting a bug?

The following code throws an error in webpack, even though this is totally valid YAML.
It's making it difficult to move translations into their own yaml files because of this issue.

en:
  'some-key': 'bar'

Error:

Module parse failed: Unexpected token (2:5)           friendly-errors 12:41:58
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| en:
>   'some-key': 'bar'
|

### Expected behavior

Valid YAML to be parsed

### Reproduction

N/A

### System Info

```shell
System:
    OS: macOS 14.0
    CPU: (10) arm64 Apple M1 Pro
    Memory: 119.64 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.7.0 - ~/.nvm/versions/node/v20.7.0/bin/node
    npm: 10.1.0 - ~/.nvm/versions/node/v20.7.0/bin/npm
  Browsers:
    Chrome: 118.0.5993.117
    Edge: 119.0.2151.46
    Safari: 17.0
  npmPackages:
    @vue/test-utils: ^1.3.0 => 1.3.6
    @vue/vue2-jest: ^28.1.0 => 28.1.0
    vue-imask: ^6.1.0 => 6.6.3
    vue-lazy-hydration: ^2.0.0-beta.4 => 2.0.0-beta.4
    vue-observe-visibility: ^1.0.0 => 1.0.0
    vue-slider-component: ^3.2.20 => 3.2.24
    vue-tel-input: ^5.11.0 => 5.14.2
    vue-the-mask: ^0.11.1 => 0.11.1
    vuelidate: ^0.7.7 => 0.7.7

Screenshot

No response

Additional context

No response

Validations

Is this issue still open?