Skip to content

Cannot assign to read only property 'entity' of object '[object Object]' #112

@VincentMolinie

Description

@VincentMolinie

Hi,
I tried to use you library on version v1.0.0-beta.2
With the following code:

import Component from '@ember/component';
import { tagName } from '@ember-decorators/component';
import { argument } from '@ember-decorators/argument';
import { Action } from '@ember-decorators/argument/types';
import Model from '@ember-data/model';

@tagName('')
export default class MyComponent extends Component {
  @argument(Model) entity;
  @argument(Action) save;
  @argument(Action) discard;
}

But I keep getting the following error:

Cannot assign to read only property 'entity' of object '[object Object]'

It works perfectly fine on v0.8.21.

What am I doing wrong ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions