Giter VIP home page Giter VIP logo

Comments (6)

 avatar commented on September 15, 2024 1

ok, thanks!

from neo.

eliperelman avatar eliperelman commented on September 15, 2024

@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.

 avatar commented on September 15, 2024

@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.

eliperelman avatar eliperelman commented on September 15, 2024

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.

 avatar commented on September 15, 2024

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.

eliperelman avatar eliperelman commented on September 15, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.