GithubHelp home page GithubHelp logo

Comments (8)

buschtoens avatar buschtoens commented on June 11, 2024

What version of ember-decorators do you think you are using? v6? If so, you might be experiencing this error: #445

from ember-decorators.

justinross avatar justinross commented on June 11, 2024

I'm experiencing this issue, as well, but did not install ember-cli-babel-polyfills. (I'm also not converting to TS, but providing a name to @service resolves the issue.

@service('session') session; works, while
@service session; does not.

I'm not using @layout, so I'm not seeing error #445

I'm using ember-decorators 5.1.4

from ember-decorators.

rwjblue avatar rwjblue commented on June 11, 2024

Hmm, is this the same issue as emberjs/ember.js#18075? I'm wondering because it seems specifically to affect IE11 when using a Symbol polyfill, which seems very much like what we are working through over in that Ember issue...

@buschtoens - What do you think?

from ember-decorators.

justinross avatar justinross commented on June 11, 2024

If it helps at all, I’m seeing this issue in (and targeting) Firefox ESR 45. Firefox 60 works fine. Haven’t had a chance to test others in between.

from ember-decorators.

buschtoens avatar buschtoens commented on June 11, 2024

@justinross And you are definitely not using any polyfill? Can you also please install ember-cli-dependency-lint to rule out any accidental dependency clobbering by transitive dependencies?

Also, what version of Ember are you on?

from ember-decorators.

justinross avatar justinross commented on June 11, 2024

@buschtoens further info:
I haven't installed any polyfills. I'll install ember-cli-dependency-lint shortly, but I thought this might be useful, first:

I managed to narrow things down a bit. I'm only getting this error with two of my @service uses. One is calling @service cookies; (from the ember-cookies addon) in my Application adapter, but making the same @service cookies; declaration in an ember-simple-auth authenticator does not throw the error.

The other problematic @service usage is calling @service router; in one of my controllers (oddly enough, others work fine with that syntax).

image

vs

image

That seems pretty wonky. I'll go test with ember-cli-dependency-lint right now.

/edit: oh, and I'm on ember 3.8.1

from ember-decorators.

justinross avatar justinross commented on June 11, 2024

Okay, installed and ran dependency-lint.

This was the only conflict found:
image

Since it's not crucial to my app, I just removed ember-cli-new-version. No dependency conflicts following its removal. No change in the reported issue, however.

Also, follow-up to my last comment. I thought that I had successfully changed most of my @service calls back to @service serviceName, but I just noticed that using @service session; instead of @service('session') session;` in a route causes this error when trying to create a link to that route in a template:

Error: Assertion Failed: You attempted to define a {{link-to "admin"}} but did not pass the parameters required for generating its dynamic segments. An element descriptor's .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "undefined"

from ember-decorators.

raido avatar raido commented on June 11, 2024

I think this issue is outdated as Ember Octane has been here for awhile already and GoogleBot even runs on evergreen Chrome.

Therefore closing this for now.

from ember-decorators.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.