-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation on how to compile frontend code for building from source? #437
Comments
To add to this, I'm trying to build the frontend. Having run `yarn run v1.22.22 Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is notome/proc/mercury_test/mercury/frontend/node_modules/postcss-safe-parser/node_m Node.js v20.15.0` If I delete the postcss@^8.1.0 entry in the lockfile then it now compiles, but when running the result the cells, inputs and outputs in the notebook are not being populated, though the Sidebar shows the parameters, and updating them does cause the notebook to be run, nothing is shown. Could we get a quick description of the current build process, versions of node, etc, that work for getting this to run? |
An update: on an ubuntu 18.04 image, running the standard ancient node version (12.18.3), with It would be nice to be able to build this locally with some changes, as I'd rather like to replace the ugly hacky code I wrote to do something very similar before I found this. |
I don't really know what I'm doing with javascript, but putting in logging shows that setNotebookSrc does indeed get called. For some reason this however isn't triggering the selector used in the component that displays the source |
Hi @adam-antonik, Apologize for late response, I was on holidays. I'm using node 14.17.0 to build frontend. Steps to build frontend:
We need to copy files to backend directory because when you run mercury locally Django (backend) is serving files. You can also start frontend as standalone app, with |
I'm trying to create a PR to modify some frontend code (.tsx) but not sure how I can build from source so I can test the entire change locally.
Could you add some documentation on how to modify the UI code locally and have it compile the javascript and then be able to run mercury?
Would make it easier to contribute, thanks!
The text was updated successfully, but these errors were encountered: