tht13 / html-preview-vscode

A HTML previewer for Visual Studio Code
MIT License
44 stars 22 forks source link

An error occurred while loading view: html.preview #41

Open addocevalon opened 3 years ago

addocevalon commented 3 years ago

I just updated to VS.Code 1.50.1 and now the HTML preview won't work.

The Preview tab is showing the error "An error occurred while loading view: html.preview".

The PROBLEMS tab displays errors like: Unknown property: 'NOwidth' css(unknownProperties) [9, 121]

To temporarily disable HTML attributes while debugging, I find it easy to just change the attribute name, typically I add "NO" to the start of it. For example "width" becomes "NOwidth".

This works fine with any Web browser or editor, and HTML preview worked with the previous version of VS.Code (1.36.1) and HTML preview.

It would seem like the new version of HTML preview breaks when it sees an attribute it doesn't like.

If that is not the case, please let me know.

I am not seeing a setting where you can specify "ignore unknown attributes" or the like. Is that a setting? If not please add that option.

Thank you