Comments (8)
What version of ember-decorators
do you think you are using? v6? If so, you might be experiencing this error: #445
from ember-decorators.
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.
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.
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.
@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.
@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).
vs
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.
Okay, installed and ran dependency-lint.
This was the only conflict found:
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.
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)
- v5.2 MS Edge 18: Object doesn't support property or method 'apply' HOT 19
- @service router is undefined HOT 8
- Mixin pattern for polymorphic relationships doesn't seem to work with native classes HOT 1
- Polyfills for Symbol, Array.find are required to run on older browsers like IE11
- `@sort` deprecation message missing replacement code HOT 3
- TypeError: Ember._setComputedDecorator is not a function HOT 7
- ember-data decorators HOT 2
- ember-typescript-cli v2 HOT 6
- Question: why is @ember-decorators/babel-transforms still referenced in v6? HOT 2
- attribute component decorator receiving array instead of string HOT 2
- `@service` decorator doesn't work with ember 3.10.0 HOT 9
- `@layout` decorator doesn't work in ember addon HOT 5
- 5.1.4 / 5.2.0 not compatible with iOS 9.3.5 HOT 3
- Recommend usage of `ember-cli-dependency-lint`
- Detect when incompatible versions of `ember-decorators` are clobbering one another
- Add @classNameBindings and @attributeBindings class decorators HOT 2
- 6.1.0: @classNameBindings and @attributeBindings
- Build error: Generic type 'AttrOptions<T>' requires 1 type argument(s).
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-decorators.