Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML parser doesn't process valid YAML #1686

Open
5 tasks done
TheDutchCoder opened this issue Nov 6, 2023 · 1 comment
Open
5 tasks done

YAML parser doesn't process valid YAML #1686

TheDutchCoder opened this issue Nov 6, 2023 · 1 comment
Labels
Status: Review Needed Request for review comments

Comments

@TheDutchCoder
Copy link

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

@TheDutchCoder TheDutchCoder added the Status: Review Needed Request for review comments label Nov 6, 2023
@andrito9755
Copy link

Is this issue still open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Review Needed Request for review comments
Projects
None yet
Development

No branches or pull requests

2 participants