Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Helper "not" has wrong value when passing PromiseProxy
- not-eq has unknown reexport HOT 1
- Helper is-empty returns false when passing undefined
- Update to ember-cli-babel@7 HOT 2
- `or` doesn't work the same way as `||` in JavaScript HOT 3
- Update `README` to note that `or`, `and` and `xor` **do** short-circuit HOT 2
- Short-circuit Problem With `SafeString` Using `or` (And Maybe Other Helper)
- Ember Global Deprecation Warning HOT 1
- `or` cant be used when or condition value can be `false` HOT 7
- Project maintenance HOT 4
- Typescript conversion HOT 1
- Can't `npm i` master branch to use with `ember-template-imports` HOT 2
- Cut a release? HOT 12
- Incorrect glint return type for `or` helper in 4.0.0-beta.0 HOT 2
- [QUESTION] `ember-source` compat HOT 3
- `and` returns non-boolean value rather than converting it (which breaks default value logic)
- Document usage with glint additionalSpecialForms config HOT 1
- Memory leaks with `and ` and `or` after they were converted to class based helpers HOT 3
- Importing from package root does not work in classic builds + `.gts`
- Show how to use in template imports
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-truth-helpers.