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.

aliases.yaml YAMLException

See original GitHub issue

After upgrading to newest 4.0.0 version when trying to start grunt tasks I get error:

$ grunt
Loading "gruntFile.js" tasks...ERROR
>> YAMLException: Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })
Warning: Task "default" not found. Use --force to continue.

With one of the defined tasks:

$ grunt dev
Loading "gruntFile.js" tasks...ERROR
>> YAMLException: Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })
Warning: Task "dev" not found. Use --force to continue.

After downgrading to version 3.0.2 everything is running smooth.

Node version: 10.16.0

aliases.yaml definition

default:
  - 'newer:less'
  - 'newer:babel'
  - 'webpack:prod'
  - 'watch'

dev:
  - 'newer:babel'
  - 'webpack:prod'
  - 'concurrent:dev'

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:16

github_iconTop GitHub Comments

3reactions
SolomoN-uacommented, Aug 20, 2021

@mbrodala just as a workaround you can try to add js-yaml@4.1.0 as a dependency in your main package.json. That is just a crazy idea, but it can do the trick.

1reaction
mbrodalacommented, Aug 24, 2021

That works indeed. But using JSON instead of YAML is already a good workaround. 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Number of aliases for non-scalar nodes exceeds the specified ...
org.yaml.snakeyaml.error.YAMLException: Number of aliases for non-scalar nodes exceeds the specified max=50 · Using Jenkins Ask a question.
Read more >
Is it possible to nest YAML anchors hierarchically?
I'd like to know if it is possible to 'nest' YAML anchors as I have ... Unfortunately, I get an error YAMLException: unidentified...
Read more >
YAML Ain't Markup Language (YAML™) revision 1.2.2
YAML leverages these primitives and adds a simple typing system and aliasing mechanism to form a complete language for serializing any ...
Read more >
YAML Examples for Anchors, Aliases, and Overrides | Linode
YAML anchors, aliases, overrides, and extensions help reduce the repetition of data in your YAML files. These features of YAML are discussed ...
Read more >
maxAliasesForCollections size - Google Groups
YAMLException : Number of aliases for non-scalar nodes exceeds the specified max=50. at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:147).
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