You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an extra comma in deno.json, then run deno task lume upgrade --dev.
How often does it reproduce? Is there a required condition?
100%
What is the expected behavior?
It should work.
What do you see instead?
Task lume echo "import 'lume/cli.ts'" | deno run -A - "upgrade" "--dev"
SyntaxError: Expected double-quoted property name in JSON at position 211 (line 9 column 3)
at JSON.parse (<anonymous>)
at https://deno.land/x/lume_init@v0.3.3/steps/load.ts:10:27
at eventLoopTick (ext:core/01_core.js:178:7)
at async Init.run (https://deno.land/x/lume_init@v0.3.3/init.ts:115:22)
at async default (https://deno.land/x/lume@v2.5.3/cli/upgrade.ts:5:3)
at async Command.fn (https://deno.land/x/lume@v2.5.3/cli.ts:18:5)
at async Command.execute (https://deno.land/x/cliffy@v0.25.7/command/command.ts:1794:7)
at async Command.parseCommand (https://deno.land/x/cliffy@v0.25.7/command/command.ts:1639:14)
at async https://deno.land/x/lume@v2.5.3/cli.ts:175:3
Additional information
I believe Deno uses json5 for its config, not JSON.parse.
Maybe elsewhere in Lume has this bug too.
The text was updated successfully, but these errors were encountered:
Deno allows jsonc (json with comments), but not json5 (that is a different format).
Lume can read deno.json and deno.jsonc. I guess you're using jsonc format with the json extension, right?
The load function only use jsonc if the file extension is .jsonc (source) Maybe it should be changed to use it for all formats.
Uh oh!
There was an error while loading. Please reload this page.
Version
/
Platform
/
What steps will reproduce the bug?
Add an extra comma in
deno.json
, then rundeno task lume upgrade --dev
.How often does it reproduce? Is there a required condition?
100%
What is the expected behavior?
It should work.
What do you see instead?
Additional information
I believe Deno uses json5 for its config, not
JSON.parse
.Maybe elsewhere in Lume has this bug too.
The text was updated successfully, but these errors were encountered: