Skip to content
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

Missing “react-dom.production.min.js” file #4771

Closed
EFanZh opened this issue Jul 18, 2019 · 11 comments · Fixed by #4772
Closed

Missing “react-dom.production.min.js” file #4771

EFanZh opened this issue Jul 18, 2019 · 11 comments · Fixed by #4772

Comments

@EFanZh
Copy link

EFanZh commented Jul 18, 2019

I was using a fresh installation of Jupyter Notebook 6.0.0. After opening the web page, the console shows the following error message:

http://localhost:8888/static/components/react/react-dom.production.min.js net::ERR_ABORTED 404 (Not Found)

List of installed Python packages:

attrs==19.1.0
backcall==0.1.0
bleach==3.1.0
colorama==0.4.1
decorator==4.4.0
defusedxml==0.6.0
entrypoints==0.3
ipykernel==5.1.1
ipython==7.6.1
ipython-genutils==0.2.0
ipywidgets==7.5.0
jedi==0.14.1
Jinja2==2.10.1
jsonschema==3.0.1
jupyter==1.0.0
jupyter-client==5.3.1
jupyter-console==6.0.0
jupyter-core==4.5.0
MarkupSafe==1.1.1
mistune==0.8.4
nbconvert==5.5.0
nbformat==4.4.0
notebook==6.0.0
pandocfilters==1.4.2
parso==0.5.1
pickleshare==0.7.5
prometheus-client==0.7.1
prompt-toolkit==2.0.9
Pygments==2.4.2
pyrsistent==0.15.3
python-dateutil==2.8.0
pywinpty==0.5.5
pyzmq==18.0.2
qtconsole==4.5.1
Send2Trash==1.5.0
six==1.12.0
terminado==0.8.2
testpath==0.4.2
tornado==6.0.3
traitlets==4.3.2
wcwidth==0.1.7
webencodings==0.5.1
widgetsnbextension==3.5.0
@minrk
Copy link
Member

minrk commented Jul 18, 2019

Thanks for the report, fixed by #4772.

@minrk minrk added this to the 6.0.1 milestone Jul 18, 2019
@meetri
Copy link

meetri commented Jul 18, 2019

is there a work around for this until 6.0.1 is released?

@hss14
Copy link

hss14 commented Jul 27, 2019

I encountered the same issue. Anyone know a work around?

@tsankuanglee
Copy link

workaround: #4772 (comment)

lresende pushed a commit that referenced this issue Aug 6, 2019
This dependency was omitted when react was added, so it is not installed.

Closes #4771
@LeXwDeX
Copy link

LeXwDeX commented Aug 13, 2019

TypeError: undefined is not an object (evaluating 'U.unstable_cancelCallback')\

@johncbowers
Copy link

After attempting the workaround, I'm having the same problem as sunsan05 above.

What I really cannot understand is how the hell this happened to my machine without me upgrading Jupyter. Ten minutes ago Jupyter was working fine and has been all morning, now it is broken, and I cannot get work done. Is Jupyter auto-upgrading my notebook server without asking me?

@johncbowers
Copy link

@sunsan05

I think the problem is a mismatch between the linked react-dom.production.min.js and the react.production.min.js. The first is v16.9 while the one already in Jupyter is v16.0

I found a version of react-dom.production in v16.0 here: https://gist.github.com/aweary/92db2b795b85fe29d096aca2c57cd3ec#file-react-dom-production-js

It is not minified. So when you copy it to the directory you'll have to change the name to react-dom.production.min.js or minify it yourself.

I'm now back up and running, but I would like to know from a dev who understands the internals of jupyter how I wasn't having this problem twenty minutes ago (and have been using Jupyter all morning with the ipywidgets I developed) and suddenly this problem crops up without me updating anything on the jupyter end.

@Keppl
Copy link

Keppl commented Aug 14, 2019

From https://reactjs.org/docs/cdn-links.html:

https://unpkg.com/[email protected]/umd/react-dom.production.min.js

@MBetters
Copy link

I'm getting the same issue.

[W 21:27:55.214 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (192.168.9.1) 14.07ms referer=http://192.168.9.4:8888/tree?token=6f406c28c3753e2ebf7b383ffeabacd1f5dbcf5e98bb5670

I'm running Jupyter on a server at 192.168.9.4. My laptop that I'm browsing from is at 192.168.9.1. Maybe there's a CORS issue happening here? Would love to see this fixed.

@lresende
Copy link
Member

Could you please try to update to Release 6.0.1 and let us know if you can still reproduce the issue.

@mangozy
Copy link

mangozy commented Sep 4, 2019

Using this command "import site; print(site.getsitepackages())", you can find where the "site-package" folder is (site-packages\notebook\static\components\react). Then you know where to save the file "react-dom.production.min.js".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.