Giter VIP home page Giter VIP logo

Comments (7)

rwjblue avatar rwjblue commented on July 18, 2024

Should work. I can't think of a change in 2.x that would cause this. Can you create a reproduction?

from ember-truth-helpers.

offirgolan avatar offirgolan commented on July 18, 2024

Hmmm this is quite strange. In the current source, there is the following rule:

if(Ember.Helper) return;

But when I look at the source via chrome debugger that check doesnt exists

function registerHelper(name, helperFunction) {
        if (_ember['default'].HTMLBars._registerHelper) {
            if (_ember['default'].HTMLBars.helpers) {
                registerHelperIteration1(name, helperFunction);
            } else {
                registerHelperIteration3(name, helperFunction);
            }
        } else if (_ember['default'].HTMLBars.registerHelper) {
            registerHelperIteration2(name, helperFunction);
        }
    }

I've done a clear cache + hard reset, cleared npm cache, re-installed dependencies and still no luck.

from ember-truth-helpers.

rwjblue avatar rwjblue commented on July 18, 2024

Can you provide a repro please. Also, tell me your chrome version (there is a recent super annoying and crazy big with helpers + chrome 49/50).

Also, does this repos test suite fail for you on 2.4?

from ember-truth-helpers.

offirgolan avatar offirgolan commented on July 18, 2024

Repo is actually internal. Im getting the same error in Firefox as well 😢
Chrome Version: 49.0.2623.87 (64-bit)

Ill run the tests and report back

from ember-truth-helpers.

offirgolan avatar offirgolan commented on July 18, 2024

Just ran tests on Ember v2.4.2 and they all passed but still having the same issue on my end. These are my current dependencies

{
    "abbrev": "1.0.7",
    "babel-plugin-jscript": "1.0.4",
    "bower": "^1.7.7",
    "broccoli-asset-rev": "^2.4.2",
    "broccoli-merge-trees": "^1.1.1",
    "broccoli-static-compiler": "^0.2.2",
    "debounce-query-params": "^0.0.2",
    "ember-ajax": "^2.0.0-beta.2",
    "ember-bootstrap-datetimepicker": "^1.0.2",
    "ember-can": "0.8.0",
    "ember-cli": "2.4.2",
    "ember-cli-app-version": "^1.0.0",
    "ember-cli-blanket": "^0.9.1",
    "ember-cli-dependency-checker": "^1.2.0",
    "ember-cli-document-title": "^0.3.1",
    "ember-cli-flash": "^1.3.14",
    "ember-cli-htmlbars": "^1.0.1",
    "ember-cli-htmlbars-inline-precompile": "^0.3.1",
    "ember-cli-inject-live-reload": "^1.4.0",
    "ember-cli-less": "^1.5.3",
    "ember-cli-mirage": "^0.1.11",
    "ember-cli-moment-shim": "1.0.0",
    "ember-cli-nvd3": "^0.0.8",
    "ember-cli-pretender": "^0.5.0",
    "ember-cli-qunit": "^1.3.0",
    "ember-cli-sri": "^2.1.0",
    "ember-cli-uglify": "^1.2.0",
    "ember-composable-helpers": "0.19.0",
    "ember-cp-validations": "^2.6.0",
    "ember-data": "^2.4.0",
    "ember-disable-prototype-extensions": "^1.0.0",
    "ember-disable-proxy-controllers": "^1.0.1",
    "ember-export-application-global": "^1.0.4",
    "ember-feature-flags": "^2.0.1",
    "ember-infinity": "0.2.2",
    "ember-inflector": "^1.9.4",
    "ember-light-table": "^0.1.2",
    "ember-load-initializers": "^0.5.1",
    "ember-lodash": "^0.0.6",
    "ember-moment": "6.0.0",
    "ember-power-select": "0.9.3-beta.2",
    "ember-resolver": "^2.0.3",
    "ember-select-2": "^1.3.0",
    "ember-tooltips": "^0.5.8",
    "ember-truth-helpers": "^1.2.0",
    "loader.js": "^4.0.1",
    "moment": "^2.12.0",
    "moment-timezone": "^0.5.0",
    "morgan": "^1.7.0",
    "shelljs": "^0.6.0",
  }

from ember-truth-helpers.

rwjblue avatar rwjblue commented on July 18, 2024

What does:

npm ls ember-truth-helpers

Show?

I suspect you have two versions of ember-truth-helpers at play, and the older one (from before the guard you mentioned above) is present and processed after the current one (which means the helper being used would be the incorrect one).

from ember-truth-helpers.

offirgolan avatar offirgolan commented on July 18, 2024

Ah. Looks like some internal addon is dependent on v0.0.5 which might be
getting pulled in. Ill try to resolve it tomorrow and see if it fixes it.
Thanks Rob :D

Thanks,
Offir Golan

On Thu, Mar 17, 2016 at 5:24 PM, Robert Jackson [email protected]
wrote:

What does:

npm ls ember-truth-helpers

Show?

I suspect you have two versions of ember-truth-helpers at play, and the
older one (from before the guard you mentioned above) is present and
processed after the current one (which means the helper being used would be
the incorrect one).


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#34 (comment)

from ember-truth-helpers.

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.