-
-
Notifications
You must be signed in to change notification settings - Fork 87
Issue: Error loading field #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I believe date format with Date-fns has changed. You need to define it as: “yyyy-MM-dd H:mm”.
…________________________________
From: Andre Powell ***@***.***>
Sent: Saturday, October 16, 2021 4:17:21 PM
To: estruyf/vscode-front-matter ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [estruyf/vscode-front-matter] Issue: Error loading field (#153)
Describe the bug
The side panel shows "Error loading field" with the following date format YYYY-MM-DD H:mm.
To Reproduce
Steps to reproduce the behavior:
In settings.json
"frontMatter.taxonomy.dateFormat": "YYYY-MM-DD H:mm"
Format the date as follows -
---
title: Apple M1 - From Breakup to Makeup
authors: Andre Powell
date: 2021-06-26 18:05
modified: 2021-06-26 18:05
slug: apple-m1-from-breakup-to-makeup
category: Technology
tags: Apple, M1
status: published
featuredimage: images/featured/apple_mac_mini_m1.jpg
type: article
---
Expected behavior
Usage of the date fields in the Front Matter side panel.
Screenshots
[image]<https://user-images.githubusercontent.com/1969515/137590700-a82e63ef-2dab-4078-bd8c-54391c56244b.png>
With removing the setting, the error is gone, but the date is formatted incorrectly.
[image]<https://user-images.githubusercontent.com/1969515/137590827-559f73df-95f7-4df4-98bb-9e27bf1f818a.png>
Desktop (please complete the following information):
Front Matter v5.1.1
Mac OS BigSur
Visual Studio Code
Version: 1.61.1
Commit: c13f1abb110fc756f9b3a6f16670df9cd9d4cf63
Date: 2021-10-14T01:17:20.435Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin arm64 20.6.0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#153>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAWEGYPYEGASFCW63E5AJ5TUHGCPDANCNFSM5GDWDSWQ>.
|
That works, but their documentation "should" have supported my original. Oh, well thanks. |
I can check to support it |
estruyf
added a commit
that referenced
this issue
Oct 17, 2021
In the latest beta, your format will be supported |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The side panel shows "Error loading field" with the following date format YYYY-MM-DD H:mm.
To Reproduce
Steps to reproduce the behavior:
In settings.json
"frontMatter.taxonomy.dateFormat": "YYYY-MM-DD H:mm"
Format the date as follows -
Expected behavior
Usage of the date fields in the Front Matter side panel.
Screenshots
With removing the setting, the error is gone, but the date is formatted incorrectly.

Desktop (please complete the following information):
Front Matter v5.1.1
Mac OS BigSur
Visual Studio Code
Version: 1.61.1
Commit: c13f1abb110fc756f9b3a6f16670df9cd9d4cf63
Date: 2021-10-14T01:17:20.435Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin arm64 20.6.0
The text was updated successfully, but these errors were encountered: