allenai / scholarphi

An interactive PDF reader.
Apache License 2.0
420 stars 54 forks source link

UI doesn't load scripts #201

Open alexkreidler opened 3 years ago

alexkreidler commented 3 years ago

Pulling from master and running yarn dev results in a broken state. Here are some images:

Network and Console tab of DevTools showing 404s for scripts and app resources (click to show details) ![allen-ui-console](https://user-images.githubusercontent.com/11166947/104269664-d744b880-5464-11eb-92d7-14857746b319.png) ![allen-ui-network](https://user-images.githubusercontent.com/11166947/104269666-d744b880-5464-11eb-98d8-0db28af3ce91.png)
Broken interface in browser ![image](https://user-images.githubusercontent.com/11166947/104269503-74532180-5464-11eb-88c1-9db6e57d46ec.png)

I've tried running yarn build and serving that output, and also tried yarn start.

Here's a partially truncated view of tree in the build folder after yarn build.

├── asset-manifest.json
├── images
... a bunch under images
├── index.html
├── papers
│   └── index.html
├── pdf.viewer.js
├── pdf.worker.min.js
├── static
│   ├── css
│   │   ├── reader.css
│   │   └── reader.css.map
│   ├── js
│   │   ├── list.7f1849.js
│   │   ├── list.7f1849.js.LICENSE.txt
│   │   ├── list.7f1849.js.map
│   │   ├── reader.7f1849.js
│   │   ├── reader.7f1849.js.LICENSE.txt
│   │   └── reader.7f1849.js.map
│   └── media
... a bunch under media
├── viewer.css
└── viewer.js.map

The README doesn't outline anything else to do. I'd be happy to try some other steps if anyone has feedback.

I'd imagine this is an issue with Webpack, which could require some intense and painful debugging to get to the bottom of.

Let me know if you need any more details or I can help in another way.

Thanks for this project, it sounds and looks (from what I see so far) quite interesting and useful!

wjrforcyber commented 3 years ago

Windows 10 npm -v 6.14.14

README surly need more information to guide a new user😂. And I got a similar "loading issue", after I ran

npm install 
npm start

it shows

i 「wdm」: Compiled successfully.
No issues found.

It just stop there, the browser(chrome) didn't automatically open the app.

After I manually entered http://localhost:3001/ I can successfully see the app.