BorisMoore / jsviews

Interactive data-driven views, MVVM and MVP, built on top of JsRender templates
http://www.jsviews.com/#jsviews
MIT License
856 stars 130 forks source link

jsrender.min.js.map truncated #445

Closed Jerry2048 closed 3 years ago

Jerry2048 commented 4 years ago

Somehow jsrender.min.js.map was truncated between v1.0.5 and v1.0.6. The newer one ends abruptly in the middle of the comment "// Test is satisfied, so render content on current context", causing an improperly formed JSON file and a warning when debugging my website in Chrome with F12: "DevTools failed to load SourceMap: Could not parse content for http://[name of site]/js/jsrender.min.js.map: Unexpected end of JSON input".

BorisMoore commented 4 years ago

Thanks for calling this out. I hadn't realized there was a problem. I don't know how it got truncated. I look into it, but meantime you can get a valid jsrender.min.js.map file here:

https://www.jsviews.com/download/jsrender.min.js.map

(also linked from the https://www.jsviews.com/#download page).

Let me know if that version works correctly for you...

Jerry2048 commented 4 years ago

Thank you, I'll try it when I'm back at work on

Jerry2048 commented 4 years ago

Yes, that version works and doesn't cause the warning. Thank you very much!

BorisMoore commented 4 years ago

This has been fixed in new release v1.0.7

BorisMoore commented 3 years ago

This truncated .map file has unfortunately happened again on v1.0.8. I'll probably need to release a new version (v1.0.9) to fix this on the CDNJS site.

But meantime a valid jsrender.min.js.map file for v1.0.8 is available here:

https://www.jsviews.com/download/jsrender.min.js.map

(also linked from the https://www.jsviews.com/#download page).

BorisMoore commented 3 years ago

This has been resolved in v1.0.9