Open mattjvincent opened 3 years ago
Hello Matt, thanks for using Opencb products. At the moment it is not possible to build a standalone version of Jsorolla, mostly because we use Webpack in our build pipeline and it doesn't support ES module output for libraries yet (https://github.com/webpack/webpack/issues/2933). If you could provide more details on what your final aim is I would be able to provide more support. Are you trying to use Opencga JS Client or some visualisation component?
Describe the bug
Unable to build jsorolla master branch
To Reproduce
Steps to reproduce the behavior:
Expected behavior A clean build
Desktop (please complete the following information):
Additional context Even when removing the following directories:
from the build, the following error occurs:
Parse error at dist/js/core/core.js:3329,88 value = subfields.slice(0, i + 1).reduce((res, prop) => res?.[prop], o ^ ERROR: Unexpected token: punc (.) at JS_Parse_Error.get (eval at (/Users/mvincent/work/GENOMEBROWSERS/jsorolla/node_modules/uglify-es/tools/node.js:21:1), :77:23)
at fatal (/Users/mvincent/work/GENOMEBROWSERS/jsorolla/node_modules/uglify-es/bin/uglifyjs:273:53)
at run (/Users/mvincent/work/GENOMEBROWSERS/jsorolla/node_modules/uglify-es/bin/uglifyjs:230:9)
at Object. (/Users/mvincent/work/GENOMEBROWSERS/jsorolla/node_modules/uglify-es/bin/uglifyjs:160:5)
at Module._compile (internal/modules/cjs/loader.js:1156:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)