Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Unable to write "views/templates/compiled" file (Error code: EISDIR). Use --force to continue. #1

Open
glenselle opened this issue Mar 14, 2013 · 0 comments

Comments

@glenselle
Copy link

Hi, I'm trying to use your example and I'm getting the following output on the command line:

unknownd8a25e8b001d:socket_chat_example glenselle$ grunt
Running "ember_handlebars:all" (ember_handlebars) task
Warning: Unable to write "views/templates/compiled" file (Error code: EISDIR). Use --force to continue.

Aborted due to warnings.

All I want to do is compile the templates and then put them in the views/templates/compiled directory. Here's what my Gruntfile.js looks like:

module.exports = function(grunt) {
grunt.initConfig({
    // Include package.json for dynamic naming based on info from package.json
    pkg: grunt.file.readJSON('package.json'),

// Compile ember templates:
ember_handlebars: {
  all: {
    src: 'views/templates/*.hbs',
    dest: 'views/templates/compiled'
  }
},

// Include the templates in your app:
concat: {
  all: {
    files: {
        'public/javascripts/templates.js' : 'views/templates/compiled/*.js'
    }
  }
}

});

// Load the neccessary Grunt plugins installed via NPM
grunt.loadNpmTasks('grunt-ember-handlebars');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask('default', ['ember_handlebars', 'concat']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant