Comments (2)
导致此问题的原因为Icarus中的某些组件在设置日期的语言时,语言的名称与moment.js内置的语言名称不一致。例如_config.yml
中设置的语言为zh-CN而moment.js
内置的语言名为zh-cn
。从而moment.js在加载的过程中会重复加载同一个语言文件,引发Deprecation warning。
有趣的是,在大小写敏感的文件系统上(如NTFS与ext4),重复加载并不会导致warning。因为moment.js
在大小写敏感的文件系统上加载zh-CN
时会找不到语言文件zh-CN.js
(因为moment.js
只有zh-cn.js
)。而macOS的文件系统APFS对文件的大小写不敏感,所以会触发bug。
此问题已在最新版本的Icarus中修复。
from hexo-theme-icarus.
导致此问题的原因为Icarus中的某些组件在设置日期的语言时,语言的名称与moment.js内置的语言名称不一致。例如
_config.yml
中设置的语言为zh-CN而moment.js
内置的语言名为zh-cn
。从而moment.js在加载的过程中会重复加载同一个语言文件,引发Deprecation warning。有趣的是,在大小写敏感的文件系统上(如NTFS与ext4),重复加载并不会导致warning。因为
moment.js
在大小写敏感的文件系统上加载zh-CN
时会找不到语言文件zh-CN.js
(因为moment.js
只有zh-cn.js
)。而macOS的文件系统APFS对文件的大小写不敏感,所以会触发bug。此问题已在最新版本的Icarus中修复。
感谢解答,我在升级版本之后就没有再出现过该错误了
from hexo-theme-icarus.
Related Issues (20)
- footer padding HOT 1
- hexo g error HOT 5
- 配置中`update_time`设为`auto`后显示的更新时间为构建时间 HOT 9
- 能否添加:调用google翻译的语种选择框?
- easy dark theme support with Bulma plugin HOT 2
- FontAwesome之外的图标支持(如 Tabler Icons 等) HOT 1
- 【已解决】主题与[email protected]不兼容。请不要手贱乱更新依赖。
- 文章比较多的时候首页边栏加载很慢 HOT 3
- YAML files in source folder make icarus crash HOT 4
- Supporting sub-menus
- add multi author support HOT 1
- two columns index gallery layout HOT 2
- option to disable all widgets HOT 1
- make container-inner-max-width configurable HOT 2
- Numbers show different in multiline codeblock snippet HOT 3
- 使用自定义字体时首页文章发布时间栏出现滑动条 HOT 4
- Comment Plugin is render-blocking
- [建议]优化主题性能 HOT 16
- 使用源码安装主题报错 HOT 2
- 文章头部是一张照片的效果是怎么弄的? HOT 3
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 hexo-theme-icarus.