Comments (11)
What version of moment is being pulled in?
from ember-moment.
Also what version of ember cli and did you install ember-moment
through ember install
or npm install
.
from ember-moment.
I'm using the newest versions as far as I've seen:
- ember-cli 1.13.8
- ember-moment-shim 0.6.1
- ember-moment 3.5.1
- ember 1.13.8
- moment 2.10.6
- moment-timezone 0.4.0
I installed it via ember install
.
(I tried it with the included moment-version 2.8.0 and with the newest 2.10.6)
from ember-moment.
I haven't been able to reproduce this, any chance you can isolate it to an example and push it to github? Will help speed up patch time
from ember-moment.
I have this issue with this pretty minimal example:
https://github.com/mydea/ember-cli-example-app-for-github/tree/ember-moment
from ember-moment.
I'm not seeing the error, perhaps its an issue with your npm packaging cache?
ember-cli-example-app-for-github git:master ❯ ember s
version: 1.13.8
Livereload server on http://localhost:49152
Serving on http://localhost:4200/
Build successful - 3604ms.
Slowest Trees | Total
----------------------------------------------+---------------------
Concat: Vendor | 2282ms
Slowest Trees (cumulative) | Total (avg)
----------------------------------------------+---------------------
Concat: Vendor (1) | 2282ms
Babel (6) | 421ms (70 ms)
Funnel (43) | 191ms (4 ms)
from ember-moment.
I deleted the tmp, node_modules and bower_components folder, ran the following commands:
npm cache clean
bower cache clean
npm install
bower install
ember g ember-moment
and it still threw the same error.
from ember-moment.
Hi.
It seems to be an error in ember-cli-moment-shim (a major dependency of ember-moment).
Files related to the included locales are directly imported from the moment 'locales' folder:
https://github.com/jasonmit/ember-cli-moment-shim/blob/d2e4f5205979b681f7118d31f50543fc16dd9c68/index.js#L42
but the 'en' locale is "almost-hardcoded" in moment.js and not present in the locale folder :
https://github.com/moment/moment/tree/develop/locale
To bypass this problem, you can omit the 'en' locale in includeLocales.
from ember-moment.
It seems to be an error in ember-cli-moment-shim
I don't see where I'm including en
though. I can warn on mismatches but that's the best I can do. The documentation points to the list of available locales.
from ember-moment.
jasonmit/ember-cli-moment-shim#17 will warn on mistmatches now and quietly ignore if you pass en
since it's included by default. Will version shim as 0.6.2 and bump ember-moment dep as well and version
from ember-moment.
3.6.2 fixes this, be sure you update your apps ember-cli-moment-shim dep to 0.6.2 or rerun the blueprint.
from ember-moment.
Related Issues (20)
- Timezone doesn't apply HOT 3
- [ember-moment] attempted to set timezone, but moment-timezone is not setup. HOT 2
- "Invalid date" in Safari HOT 1
- Using ember-moment in Ember 3.18 fails to produce production build HOT 8
- When calling `deprecate` you must provide `for` in options. Missing options.for in "ember-moment.addon.helpers.moment-to-now" deprecation
- Import `computed.bool` from the right package HOT 8
- error starting ember with ember-moment HOT 1
- Ember Global deprecation warning due to old version of ember-cli-babel
- `services/moment.js` bug in `defaultFormat` HOT 3
- moment-timezone dependency added HOT 5
- toggling locales does not take effect
- Is ember-cli-moment-shim still required for ember-moment? HOT 3
- Timezone not accesible after upgrading to version 9 HOT 2
- Environment configuration does not work as documented HOT 2
- Update dependency `@embroider/addon-shim` to `^1.0.0`
- Display an optional message when date is null/invalid/undefined
- Documentation incorrect for environment settings
- ember-moment is trying to import from ember-cli-moment-shim but that is not one of its explicit dependencies Error thrown while using Embroider compat build HOT 15
- Error importing moment-timezone with ember-auto-import 2.6.2 HOT 3
- Error: Could not find module `moment` imported from `(require)` on Ember 4.12 during embroider-safe scenario HOT 2
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-moment.