rzh9b
rzh9b2y ago

split error when using std toml

here's the error:
$ deno run -A toml.ts
error: Uncaught (in promise) TypeError: subStr.split is not a function
const lines = subStr.split("\n");
^
at parse (https://deno.land/std@0.162.0/encoding/_toml/parser.ts:873:28)
at file:///C:/Users/jorda/crate/playground/toml.ts:5:13
$ deno run -A toml.ts
error: Uncaught (in promise) TypeError: subStr.split is not a function
const lines = subStr.split("\n");
^
at parse (https://deno.land/std@0.162.0/encoding/_toml/parser.ts:873:28)
at file:///C:/Users/jorda/crate/playground/toml.ts:5:13
0 Replies
No replies yetBe the first to reply to this messageJoin