Comments (6)
ok, thanks!
from neo.
@lavokad hello! Could you please share the result of running npm run build
, and maybe any logs from your webserver? Maybe a screenshot as well?
from neo.
@eliperelman that is weird. I finally put the built project in a basic node server and it works perfectly. However, I checked apache logs in the access.log and there is nothing wrong:
127.0.0.1 - - [03/Aug/2016:20:13:26 +0300] "GET /build/vendor.bundle.js HTTP/1.1" 200 712
127.0.0.1 - - [03/Aug/2016:20:13:26 +0300] "GET /build/bundle.js HTTP/1.1" 200 841477
127.0.0.1 - - [03/Aug/2016:20:13:33 +0300] "GET /build/ HTTP/1.1" 304 -
127.0.0.1 - - [03/Aug/2016:20:13:33 +0300] "GET /build/vendor.bundle.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Aug/2016:20:13:33 +0300] "GET /build/bundle.js HTTP/1.1" 304 -
npm run build
terminates nicely.
Thanks again.
from neo.
It looks like you are serving the files from above the build/ directory, but you should be serving the contents of the build directly. For example, the GET
request should be something like:
127.0.0.1 - - [03/Aug/2016:20:13:26 +0300] "GET /vendor.bundle.js HTTP/1.1" 200 712
Since the path of the root directory is different than the path that the app will look for to import more JS files, it may not load correctly.
from neo.
oh, I see now. Sorry. Just one more thing, build version has these console outputs:
action @ 00:34:48.140 @@router/LOCATION_CHANGE ...
Where can I disable them?
from neo.
@lavokad that appears to be a bug in the implementation of our app.js
code. I'm trying to determine what to do with that code in #28.
from neo.
Related Issues (20)
- move repository to mozilla organization HOT 1
- auto release when creating a tag
- Simplify app.js
- neo init causes a bug HOT 4
- hide right side state panel HOT 1
- Integrate webpack-dashboard HOT 2
- Support compiling with Node.js versions before v6 HOT 3
- neo test results in build errors (JSON files) HOT 2
- Server side rendering? HOT 1
- Disable devtools HOT 2
- Serving assets with the dev server HOT 5
- json-loader error HOT 6
- Save 1.1Mo in the production build HOT 2
- Add support for Jest tests HOT 1
- FlowStatusPlugin doesn't print flow status checks HOT 7
- Add `src/` directory to webpack resolve root config
- Switch Neo to be a neutrino preset, or deprecate in favor of neutrino-preset-react HOT 1
- unable to npm install HOT 2
- CODE_OF_CONDUCT.md file missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neo.