AzureResourceVisualizer icon indicating copy to clipboard operation
AzureResourceVisualizer copied to clipboard

can't open existing template

Open SvenKempf opened this issue 9 years ago • 3 comments

Hi, unfortunately, I'm not able to load an existing local template. I can browse for it in the open dialog, but nothing happens, when I click on "open"

I'm using ArmViz on Windows 10. Node.js is in version 4.4.4

SvenKempf avatar Jul 21 '16 08:07 SvenKempf

Hi, Are you running ArmViz on your local machine? Could you please check if there is any error info in your browser console?

shenglol avatar Jul 21 '16 18:07 shenglol

Hi, yes, I'm using it on a local machine. This is the output in the console:

Uncaught SyntaxError: Unexpected token / in JSON at position 1345 ArmTemplate.CreateFromJson @ index.module.js:519 fileReader.onload @ index.module.js:21

I'm wondering about that message, because the template is working in Azure.

I Think the issue is caused by using comments in our JSON templates ( indicated by // ). After removing those comments, I'm able to open a template. But for us those comments are really helpful ;-)

Best regards Sven

SvenKempf avatar Jul 22 '16 13:07 SvenKempf

@SvenKempf Thanks for your comments! I'll fix this in our next version :)

Best, Shenglong

shenglol avatar Jul 26 '16 18:07 shenglol