-
There appears to be a bug when creating a But in reality it appears that it only takes one argument e.g.
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
In the meantime in order to work around this issue, I needed to first use
|
Beta Was this translation helpful? Give feedback.
-
Could you check which version of |
Beta Was this translation helpful? Give feedback.
-
It appears that I am using `"yaml": "^1.10.0"`
This is the package version that was installed by default using NPM, the
documentation is for version 2?
…On Mon, Dec 28, 2020 at 12:50 PM Eemeli Aro ***@***.***> wrote:
Could you check which version of yaml you're using? The v2 API is
different from v1.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/eemeli/yaml/issues/217#issuecomment-751671283>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFCBUIN47UB65LENEWKPR2TSXBPHNANCNFSM4VK7DV5Q>
.
|
Beta Was this translation helpful? Give feedback.
-
I see now that I was looking at version 2 of the documentation. |
Beta Was this translation helpful? Give feedback.
-
What is the correct way to create a YAML Document object from a JS object in version 1? |
Beta Was this translation helpful? Give feedback.
-
This section of the v1 docs provides a couple of examples: https://eemeli.org/yaml/v1/#creating-nodes |
Beta Was this translation helpful? Give feedback.
This section of the v1 docs provides a couple of examples: https://eemeli.org/yaml/v1/#creating-nodes