I run ember s and get the following:
ember s
version: 2.4.2
Livereload server on http://localhost:49152
Serving on http://localhost:4200/
The Broccoli Plugin: [TemplateCompiler] failed with:
Error: EEXIST: file already exists, symlink '/Users/myname/Documents/source-code/route-app/tmp/template_compiler-input_base_path-http://ift.tt/1SrkZ6F' -> '/Users/myname/Documents/source-code/route-app/tmp/template_compiler-output_path-http://ift.tt/23ntXNv'
at Error (native)
at Object.fs.symlinkSync (fs.js:897:18)
Here is my compoent's hbs and js files:
hbs file:
<h2>Add New Event</h2>
<form {{action 'addEvent' on='submit'}}>
<div>
<label for="">Event Date</label>
{{input value=event.date}}
<label for="">Event Name</label>
{{input value=event.name}}
<label for="">City</label>
{{input value=event.city}}
<label for="">State</label>
{{input value=event.state}}
</div>
<button type="submit">Add Event</button>
</form>
js file:
import Ember from 'ember';
export default Ember.Component.extend ({
actions:
{
addEvent: function() {
this.sendAction('action', this.event);
}
}
});
Both are in the ../templates/components directory.
Any idea what I am doing wrong? Is this component a reserved name or something? I'm lost!
Aucun commentaire:
Enregistrer un commentaire