Code Monkey home page Code Monkey logo

speck's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

isochronous

speck's Issues

Uncaught TypeError: Cannot call method 'compile' of undefined

When i use 'speck' i have an error


text.get(req.toUrl(url), function(data) {
                console.log(dust);
                var compiled = dust.compile(data, name);
---->>>>Uncaught TypeError: Cannot call method 'compile' of undefined
                dust.loadSource(compiled);
                var normalizeObject = function(obj) {
                        if (obj === undefined || obj === null) {
                            return {};

my setup is very simple :


define (require, exports, module) ->
  _           = require 'underscore'
  Backbone    = require 'backbone'
  utils       = require 'cs!../utils'
  speck       = require 'speck!../templates/middle-top-menu-bar'

as soon as I add speck to my code i have this issue.

my main.js is properly configured :


require.config({
  paths: {
    'underscore'      : 'libs/prod/underscore/underscore-min',
    'backbone'        : 'libs/prod/backbone/backbone-min',
    'jquery'          : 'libs/prod/jquery/jquery-min',
    'dust'            : 'libs/prod/dust/dust-core-1.1.1',
    'text'            : 'libs/prod/text/text',
    'speck'           : 'libs/prod/speck/speck',
    'template'        : 'app/dev/templates.combined',
    'cs'              : 'libs/prod/cs/cs',
    'coffee-script'   : 'libs/prod/coffee-script/coffee-script'
  },
  shim: {
      backbone: {
          deps: ["jquery", "underscore"],
          exports: "Backbone"
      },
      template: {
          deps: ["dust"],
          exports: "template"
      },
      speck : {
          deps: ['dust', 'text']
      },
      underscore: {
        'exports': '_'
      }
  }
});
require([
  'underscore',
  'backbone',
  'dust',
  'speck',
  'cs!app'
]);

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.