datalayer / jupyter-ui

⚛️ React.js components 💯% compatible with 🪐 Jupyter - Storybook on https://jupyter-ui-storybook.datalayer.tech
https://jupyter-ui.datalayer.tech
Other
325 stars 46 forks source link

Example (create-react-app) is not runing on machine #40

Closed mdalishanali closed 1 year ago

mdalishanali commented 1 year ago

I clone this repo and try to run create-react-app example. When I start the server then I throw the error called module not found of codemirror. I had clone twice and thrice to fix this issue. But does not resolve yet. Can you try it on your machine. Let me know If is working on your machine. Thank you!

echarles commented 1 year ago

Thank you so much @mdalishanali for trying out and reporting. Not sure the cause of the error you have reported. We are living with latest alpha jupyterlab artifacts, so something it can break... In the meantime I have pushed more changes. Would you have time to retry with the following snippet (the Makefile has a fix for a jupyterlab package, so you really need to use it, also please use conda to make sure all the tools are available with the correct version). Thx again!

git clone https://github.com/datalayer/jupyter-react.git && \
  cd jupyter-react
conda deactivate && \
  make env-rm # If you want to reset your environment.
make env && \
  conda activate jupyter-react
make install build
yarn start:create-react-app      # open http://localhost:3000
echarles commented 1 year ago

PS: The conda env is now name datalayer, so you will have to use conda activate datalayer.

mdalishanali commented 1 year ago

Thank you @echarles

echarles commented 1 year ago

Closing. Please reopen if you still have issues. Thx.