Issue: Error loading field #124

Closed
opened 2026-10-05 02:26:29 +02:00 by adam · 4 comments
Owner

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

With removing the setting, the error is gone, but the date is formatted incorrectly.
image

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

**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 <!-- github-sync-id:1028059424 -->
adam closed this issue 2026-10-05 02:26:29 +02:00
Author
Owner

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 GitHubhttps://github.com/estruyf/vscode-front-matter/issues/153, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAWEGYPYEGASFCW63E5AJ5TUHGCPDANCNFSM5GDWDSWQ.

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<https://github.com/estruyf/vscode-front-matter/issues/153>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAWEGYPYEGASFCW63E5AJ5TUHGCPDANCNFSM5GDWDSWQ>. <!-- github-comment-id:944923997 -->
Author
Owner

That works, but their documentation "should" have supported my original. Oh, well thanks.

That works, but their documentation "should" have supported my original. Oh, well thanks. <!-- github-comment-id:944933680 -->
Author
Owner

I can check to support it ☺️

I can check to support it ☺️ <!-- github-comment-id:944938167 -->
Author
Owner

In the latest beta, your format will be supported

In the latest beta, your format will be supported <!-- github-comment-id:945122984 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#124