vendredi 4 février 2022

How can I resolve a TypeError using old version of ember and ember-light-table?

I have the test project at https://github.com/ericg-ember-questions/test_computed_sort

I setup the project by doing the following:

Node version: v12.18.1 (npm v6.14.5)

  1. npm install --save-dev ember-cli@3.4
  2. ./node_modules/.bin/ember new test_computed_sort
  3. cd test_computed_sort/
  4. ./node_modules/.bin/ember install ember-light-table@1.13.2
  5. ./node_modules/.bin/ember generate component test-comp
  6. ./node_modules/.bin/ember serve

application.hbs


test-comp.hbs

Hello



If I comment out the reference to light-table, no error is generated. However, with it, I see in the console:

media.js:15 Uncaught TypeError: decorator is not a function
    at media.js:15:1
    at Array.reduce (<anonymous>)
    at _applyDecoratedDescriptor (media.js:15:1)
    at Module.callback (media.js:240:1)
    at Module.exports (loader.js:106:1)
    at Module._reify (loader.js:143:1)
    at Module.reify (loader.js:130:1)
    at Module.exports (loader.js:104:1)
    at requireModule (loader.js:27:1)
    at Class._extractDefaultExport (index.js:432:1)

What can I do to resolve this error so I can use ember-light-table with this project?




Aucun commentaire:

Enregistrer un commentaire