Comments (5)
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.
-
can.view.cached return -> Object {}
-
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
-
the views.production.js path is right .
views : "../views.production"
do i make others checks?
Thanks
from can-compile.
Is views.production.js empty, too?
from can-compile.
9 hours after i finally resolved!!!!!!!!!!!!!!!!
i had two problems :
- 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.
Cool, closing this then. Feel free to submit any other issues you have.
from can-compile.
Related Issues (20)
- Can't get it to work HOT 15
- jquery not found HOT 2
- Not working with stache and canjs 2.1.x HOT 1
- Should be pipe-able in a gulp chain, and the task helper should allow optional dependencies HOT 1
- Drop dependency on JSDom - installation issues on all platforms HOT 2
- Can compile it's failing on redirects HOT 1
- Grunt 1.0 does not satisfy can-compile's peerDependencies requirements HOT 2
- Very old node HOT 1
- is this deprecated? HOT 2
- Fix: Domains for new Subdomain Style HOT 6
- TypeError: Cannot read property 'view' of undefined HOT 12
- http://canjs.com/release/2.3.27/can.view.mustache.js 404 HOT 2
- Remove external site dependanies HOT 7
- Problem loading mustache components views into production HOT 2
- Setup missing badges
- An in-range update of grunt is breaking the build 🚨 HOT 2
- vulnerabilities found - npm audit
- An in-range update of glob is breaking the build 🚨 HOT 3
- An in-range update of grunt-contrib-jshint is breaking the build 🚨 HOT 2
- An in-range update of through2 is breaking the build 🚨 HOT 2
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 can-compile.