Emerson / ember-form-master-2000

A simple form builder for Ember built as an Ember-CLI addon.
MIT License
40 stars 18 forks source link

Build error- undefined is not a function #28

Closed kalyco closed 9 years ago

kalyco commented 9 years ago

I'm still pretty new to using ember.

Package.json: "ember-form-master-2000": "^0.2.0"

Running into this error on the server:

modules/ember-form-master-2000/templates/components/fm-form.hbs

app/templates/register.hbs:

<section class="register">
  {{#fm-form action='register'}}
    <h1>Sign Up</h1>

    {{fm-field type='text' value=model.email errors=model.errors.email label="Email Address"}}

    {{fm-field type='password' value=model.password errors=model.errors.password label="Password"}}

    {{fm-field type='password' value=model.passwordConfirmation errors=model.errors.password_confirmation label="Confirm Password"}}
    {{#fm-submit value="Sign Up"}}
      {{link-to 'Log In' 'login'}}
    {{/fm-submit}}
  {{/fm-form}}

</section>

My inspector is running this issue, but I don't know if it's related:

[Report Only] Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-Eaamrrh0b5a_naRsV_zg7s6-kGvexMXZQARWP6ukkg4='), or a nonce ('nonce-...') is required to enable inline execution.

on line 11 and again on 15 showing

  <span style="color: #888">(in <code>/Users/kalyco/Documents/foundation-ember/tmp/tree_merger-tmp_dest_dir-0L4RXMpu.tmp</code>)</span>
      </p>

and

 <pre style="color: #888">TypeError: undefined is not a function

respectively.

Any help would be appreciated. I imagine it's something simple that I'm overlooking. Thanks ^__^

Emerson commented 9 years ago

Sorry I never looked into this - The security policy issue is related to some settings in Ember CLI (I think the docs mention it).

That line 11 error seems related to the build process (not EFM).

Hope your Ember journey is going well!