Giter VIP home page Giter VIP logo

Comments (3)

nikospara avatar nikospara commented on May 30, 2024

Hello, and thanks for the feedback.

Indeed it will throw because it is not designed to run with npm start.

Use node app.js, as per the README file instead and point a browser to http://localhost:8110/app.html (see README.md#Run).

Please let me know if I misunderstood your use case.

from angular-require-lazy.

mastermoin avatar mastermoin commented on May 30, 2024

hey thanks for reply but still on browser i am getting these errors

GET http://localhost:8110/scripts/lib/less.js/dist/less-1.6.2.js
app.html:35
GET http://localhost:8110/scripts/lib/requirejs/require.js
app.html:36
GET http://localhost:8110/scripts/lib/jquery/dist/jquery.js
app.html:39
Uncaught ReferenceError: jQuery is not defined(anonymous function) @ app.html:39

from angular-require-lazy.

nikospara avatar nikospara commented on May 30, 2024

Yes, I confirm that and it is caused by 2 reasons:

  1. I had forgotten to mention that you need to run bower install in the build instructions (fixed); please make sure you have run bower install after npm install!
  2. This is using an old version of Bootstrap(*), which is obviously not compatible with LESS 2.x; fixated versions of LESS-related plugins

(*) It would be nice to use more recent versions, but since the scope of this project is not to demonstrate a state-of-the-art build system or UI, but rather to explore a way of integrating Angular+Require with lazy loading, I will not change it. For production systems, use the latest versions, install Bootstrap through Bower etc...

Thanks again for the valuable input!

from angular-require-lazy.

Related Issues (7)

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.