2

Running a pretty simply Assemble task on a project, but I'm getting the following error on my default grunt task:

Running "assemble:site" (assemble) task Warning: Cannot read property 'stage' of undefined Use --force to continue.

Currently running (via package.json):

"assemble": "^0.4.41" "grunt": "^0.4.5",

The assemble task in my Gruntfile:

assemble: {
    options: {
        assets: '<%= site.assets %>',
        flatten: true,
        production: false,

        // Metadata
        pkg: '<%= pkg %>',
        site: '<%= site %>',

        // Template Config
        partials: '<%= site.includes %>',
        layoutdir: '<%= site.layouts %>',
        layout: '<%= site.layout %>'
    },
    site: {
        files: {'<%= site.root %>/': ['<%= site.templates %>/pages/*.hbs']}
    }
},

If it helps, here is my config.yml file too:

# =============================================
# Build config
# =============================================

# Root Distribution
root:        _gh_pages

# Templates
templates:        templates
includes:         <%= site.templates %>/includes/*.hbs
layouts:          <%= site.templates %>/layouts  
layout:           default.hbs

# Assets Dir
assets:     <%= site.root %>/assets

# =============================================
# Site metadata 
# =============================================

title:      Feast Finder
4

2 回答 2

2

cd进入 [PROJECT]/node_modules/assemble 并运行npm install resolve-dep@0.4.1

这是一个临时修复,如此所述。

于 2014-07-09T10:36:32.350 回答
0

问题已由 Assemble 团队解决。

于 2014-07-10T21:19:23.360 回答