ember-cli-addon-docs icon indicating copy to clipboard operation
ember-cli-addon-docs copied to clipboard

Decorator is not a function error

Open derrabauke opened this issue 3 years ago • 1 comments

Hi folks,

Building works fine, but as soon as I want to visit the docs page I get the following error: image

Current setup:

"ember-cli": "3.28.5",
"ember-data": "3.28.10",
"ember-cli-addon-docs": "5.0.0",
"highlight.js": "11.6.0"

After downgrading to the following deps it works fine again:

"ember-cli-addon-docs": "4.2.2",
"highlight.js": "10.7.2"

The error hint to tracked-toolbox didn't :bulb: me so far. Tried to update my "tracked-toolbox" dep to "^2.0.0" and also with the old "^1.2.3" setup - still the same error.

Do you guys have any clue what went wrong?

derrabauke avatar Aug 04 '22 07:08 derrabauke

I could fix it in our monorepo with the following resolution:

  "resolutions": {
    "**/tracked-toolbox": "^1.2.3"
  },

Tried updating to "tracked-toolbox": "^2.0.0" in all sub-packages as well (without the resolution ofc), but it would not fix the issue. So I reset them to ^1.2.3 and put the resolution in place.

derrabauke avatar Aug 04 '22 09:08 derrabauke

We have a dependency on tracked-toolbox v2, so I would expect you need to have everything on 2.x for it to work.

RobbieTheWagner avatar Dec 21 '23 14:12 RobbieTheWagner

Works now with tracked-toolbox: ^2.0.0 and ember-cli-addon-docs: ^6.0.2. Thx

derrabauke avatar Dec 21 '23 14:12 derrabauke