Coder Social home page Coder Social logo

Comments (5)

daffl avatar daffl commented on August 19, 2024

Here are the things to double check:

  • Are the views preloaded (check can.view.cached in your console)
  • Is views.production.js loaded and added to the built JavaScript
  • Do the views in views.production.js use the correct paths (you might have to use a normalizer)

from can-compile.

cesarin3134 avatar cesarin3134 commented on August 19, 2024
  1. can.view.cached return -> Object {}

  2. after i run the build optimizer with requirejs into the output file common.js i found :

    define('views', [],function() {});

    and not the pre-compile views code

  3. the views.production.js path is right .

    views : "../views.production"

do i make others checks?
Thanks

from can-compile.

daffl avatar daffl commented on August 19, 2024

Is views.production.js empty, too?

from can-compile.

cesarin3134 avatar cesarin3134 commented on August 19, 2024

9 hours after i finally resolved!!!!!!!!!!!!!!!!
i had two problems :

  1. the saved output views.production.js file in a wrong path, for this reason when i run the requirejs optimizer it was empty.
    2 . the paths into the output file views.production.js was wrong :
    the wrong path was can.view.preload('app_cerca_uffici_bancomat_views_init_ejs'
    the right path is can.view.preload('js_app_cerca_uffici_bancomat_views_init_ejs'

it work perfectly now!! , thank a lot for the support.
you are the number one ;)

from can-compile.

daffl avatar daffl commented on August 19, 2024

Cool, closing this then. Feel free to submit any other issues you have.

from can-compile.

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.