error when upgrade v0.13.3 to v0.14.0

15 views
Skip to first unread message

Yuandan Zhang

unread,
Sep 25, 2023, 7:50:41 PM9/25/23
to locuszoom
hi there,
for this local development, it was mainly developed on version v0.13.3.  when I try to move forward to v0.14.0, there was an error:

lz-install.js:319  Uncaught TypeError: Cannot read properties of undefined (reading 'push')

 318          base_layer.tooltip.html += '<br>SNPEff Impact: <b>{{assoc:impact}}</b>';
 319          base_layer.fields.push('{{namespace[assoc]}}impact'); 

can someone help me out?

regards

Yuandan

Andrew Boughton

unread,
Sep 25, 2023, 9:33:42 PM9/25/23
to locu...@googlegroups.com
The syntax in 0.14 was changed, as a major focus of this release was on new (rather than existing) users. 

Among other things, layout.fields has been removed (no longer necessary). See the change log for this and other breaking changes.

https://github.com/statgen/locuszoom/releases/tag/v0.14.0

-Andy Boughton

On Sep 25, 2023, at 7:50 PM, Yuandan Zhang <yuanda...@gmail.com> wrote:

hi there,
--
You received this message because you are subscribed to the Google Groups "locuszoom" group.
To unsubscribe from this group and stop receiving emails from it, send an email to locuszoom+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/locuszoom/5529fd1c-e137-4e00-9a47-2774a9e49b1cn%40googlegroups.com.

Yuandan Zhang

unread,
Sep 25, 2023, 10:47:49 PM9/25/23
to locuszoom
could you help how to fix this?

Andrew Boughton

unread,
Sep 25, 2023, 11:51:15 PM9/25/23
to locu...@googlegroups.com
Removing line 319 in your screenshot might be a start. But for other lines of code, you'll need to read the release notes that tell you what to change. (Prior link) 

Depending on what features you want, the 0.14 upgrade may also be less essential for your site than some others. I don't know enough about your code or use case to give a detailed answer.

Unfortunately, I moved on from this project some time ago, which makes it impractical to promise detailed code assistance for all users. But I hope the documentation is a useful starting point. Good luck!

-Andy Boughton

On Sep 25, 2023, at 10:48 PM, Yuandan Zhang <yuanda...@gmail.com> wrote:

could you help how to fix this?
Reply all
Reply to author
Forward
0 new messages