Comments (12)
This "bug" was introduced in version 1.3.2
. All previous versions work fine (between 1.1.4
and 1.3.1
).
from ember-cli-flash.
This issue is holding my upgrade to ember 2.0. Have others been able to upgrade ember with the latest version of the addon?
from ember-cli-flash.
I also see this error when attempting to use ember-cli-flash 1.3.4 with Ember 1.13.9. Tested with the not-yet-released 1.3.5 and still got the same error.
from ember-cli-flash.
Thanks for the report and super sorry for not following up on this earlier. I'm looking into it, hopefully @rwjblue can also chime in
from ember-cli-flash.
@poteto - Do we have a reproduction?
from ember-cli-flash.
I'm personally unable to reproduce the issue on a fresh-generated app using Ember-CLI 1.13.8, so it may be some interaction with the other dependencies of my app (and @pedrokost's). I haven't had time yet to investigate further, but I can confirm that downgrading to 1.3.1 also resolves the issue for me.
from ember-cli-flash.
What is the output of npm ls ember-new-computed
?
from ember-cli-flash.
@poteto - I suspect the issue is that some other addon is including [email protected] that is overriding the version that you are using here. 1.0.0 did not provide computed.foo
macros, which would explain this issue.
Work around solution for that would be to use import computed from 'ember-new-computed'; const { computed: { readOnly } } = Ember;
for the other ones, but I'd like to confirm the output of npm ls ember-new-computed
above and get whatever is locked to 1.0.0 fixed.
from ember-cli-flash.
@rwjblue Thanks for the pointer! It appears I was using an older version of ember-leaflet
that was locked to 1.0.0. The current version no longer uses ember-new-computed
at all, so I should probably upgrade and the issue will be resolved.
I'm not completely familiar with the workings of NPM, but shouldn't this kind of conflict raise an error at npm install
time? If one package requires exactly 1.0.0, and another requires exactly 1.0.2, they can't both get what they want...
from ember-cli-flash.
npm allows both to be installed, and the ember-cli build pipeline is geared towards preventing duplication in the build output. This leads to the "last" addon "winning" and clobbering other versions.
from ember-cli-flash.
If we didn't do this, then you would have many versions of various deps shipped in vendor.js
.
from ember-cli-flash.
This leads to the "last" addon "winning" and clobbering other versions.
That... seems incredibly danger-prone. Given it's a situation where your app is almost guaranteed to be broken, shouldn't the build process at least warn you about it? (if not outright prevent you from building the app in such a state)
from ember-cli-flash.
Related Issues (20)
- @ember-decorators/component dependency missing HOT 1
- Cannot Use Selectors on Flash Message HOT 2
- Duplicate version tags HOT 1
- preventDuplicates w/ custom dedupe property
- Installation crashes with: [ember-cli-version-checker] 'checker.forEmber' has been removed, please use 'checker.for(`ember-source`)' HOT 2
- Throws when used with ember-cli-babel `includeExternalHelpers: true`
- Using a modifier for flash-message component
- [DEPRECATE] getWithDefault HOT 1
- Ember 3.24: installing ember-cli-flash throws error from ember-cli-version-checker HOT 1
- type definitions do not work / are not detected HOT 8
- Fix `this-property-fallback` deprecation warnings
- The `did-insert` modifier is missing
- Does this addon still need the "ember-runtime-enumerable-includes-polyfill" dependency?
- Ember 3.26+: `manager-capabilities.modifiers-3-13` deprecation
- Cut a major 3.0 release HOT 12
- Deprecations in Ember v4.0+ HOT 1
- Error passing in unknown MessageOptions in TypeScript
- flashMessages is not working in newly create ember app HOT 1
- How do you add to the queue via template?
- Release planning HOT 5
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-cli-flash.