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

TypeError: Cannot read property 'type' of undefined #6

Closed
ikatyang opened this issue May 28, 2018 · 0 comments
Closed

TypeError: Cannot read property 'type' of undefined #6

ikatyang opened this issue May 28, 2018 · 0 comments

Comments

@ikatyang
Copy link
Contributor

ikatyang commented May 28, 2018

version: 1.0.0-beta.5

input:

abc: 123
def

output:

TypeError: Cannot read property 'type' of undefined
    at YAMLMap.resolveBlockMapItems (./node_modules/yaml/dist/schema/Map.js:152:34)
    at YAMLMap.parse (./node_modules/yaml/dist/schema/Map.js:71:14)
    at Object.resolve (./node_modules/yaml/dist/schema/failsafe.js:22:34)
    at Tags.resolveNode (./node_modules/yaml/dist/Tags.js:129:29)
    at Tags.resolveNodeWithFallback (./node_modules/yaml/dist/Tags.js:153:22)
    at Document.resolveNode (./node_modules/yaml/dist/Document.js:302:22)
    at ./node_modules/yaml/dist/Document.js:116:35
    at Array.forEach (<anonymous>)
    at Document.parse (./node_modules/yaml/dist/Document.js:114:16)

expected:

A syntax error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant