Closed Z-Zen closed 1 year ago
Thanks for the bug report! I've confirmed an issue (though not the same error message as you).
My answer is in two parts: the pragmatic for now, and the longterm fix (after the thanksgiving break).
First, I'll note that you generally don't need to compile LocusZoom yourself for most usages, as we provide pre-built versions via CDN: https://statgen.github.io/locuszoom/docs/guides/index.html#add-the-library-to-your-page
Second, even if you are using custom code to add a new feature, LocusZoom allows plugins to change things like how you fetch data. It's very rare that you need to edit the main source code and recompile. (if you are, it's probably because you are fixing a bug- we welcome pull requests to contribute your fix back!) https://statgen.github.io/locuszoom/docs/guides/data_retrieval.html#customizing-data-retrieval-via-subclasses
Currently, we pin to "an older LTS" as our default build target (a reflection of how... um... hideously out of date... many academic clusters are; we... um... find that our users appreciate this)
We do want people to be able to compile LocusZoom when needed!
It looms like some changes landed in a recent version of node. In the next week, I'll ticket the following items:
If you're having trouble installing dependencies (because of some recent changes in the webpack ecosystem), note that npm ci
will respect the lockfile ("known working dependencies"), where npm install
would not. That will at least allow you to create a running environment in node <=16.x.
Separately, it seems that node 17 inherited some breaking changes that affect a thing used during the build step, so even the lockfile isn't enough- we'll need to actually upgrade the webpack dependencies used to make node >= 17 work correctly.
If you need to compile your changes sooner, it should work if you use nvm
to temporarily switch to node 16. I'll post to this ticket when node 19 support is verified.
This should be fixed as of a0562c7. (CI is only testing active LTS versions of node, but I did verify 0.19.1 locally via nvm)
Because the changes are internal (build-focused), I have not released a corresponding 0.14.1 version; the issues we were seeing don't affect the final built asset bundle that would be incorporated into your website. The code is available on the develop
branch within GitHub and will be incorporated in any eventual next release.
I'll close this ticket, but please feel welcome to reopen if you see any further issues!
Hi,
I am trying to install LocusZoom Development Setup using
npm
. Here's the server configuration:Whether I try to clone the github code or download the release of LocusZoom, I get the following error:
As for the log:
I am sorry if I missed something but I followed the installation manual provided on GitHub but was still not able to install it. Any help is really appreciated. Thank you in advance.