Issue: Custom Scripts not working on Windows ARM version #731

Closed
opened 2026-10-05 03:02:41 +02:00 by adam · 1 comment
Owner

Describe the bug
I have created a custom script that renders an header image. The script does not work on my new Microsoft Surface Laptop 7 (ARM version).

To Reproduce

  • Any custom script will fail

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Device:

  • OS: Windows 11 (node version is same on both machines)
  • Front Matter CMS Version 10.8.0
  • Browser Edge

Additional context

When running the script i see the following execution in my logs.

node "c:\mygitrepo\scripts\event-header.mjs" "c:\mygitrepo" "c:\mygitrepo\content\content.md" "{\"title\":\"SomeTitle\",\"type\":\"event\",\"date\":\"2025-02-25T08:10:19.576Z\",\"image\":\"/wp-content/events/2025/4a982d5f-1f09-4ed1-9ec4-621368fe6b88.webp\",\"lastmod\":\"2025-02-25T08:14:08.442Z\",\"categories\":[\"AI\",\"Agents\",\"Conference\",\"Power Platform\"],\"noauthor\":true,\"eventTitle\":\"eventTitle\",\"eventDate\":\"date\",\"eventLocation\":\"Online\",\"eventUrl\":\"https://www.contoso.com\",\"sessionLevel\":200,\"sessionUrl\":\"https://www.contoso.com/\",\"url\":\"/contoso-event/\",\"slug\":\"contoso-event\",\"fmContentType\":\"event\",\"draft\":true}"

After playing around with a little bit and adding some additional logic the same script works on my Surface Laptop Studio (64 bit) while the ARM version fails.

I added a console.log(contentScriptArgs); that results in the following screenshot:

Image

The .frontMatter property is not populating properly for some reason..

**Describe the bug** I have created a custom script that renders an header image. The script does not work on my new Microsoft Surface Laptop 7 (ARM version). **To Reproduce** - Any custom script will fail **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **Device:** - OS: Windows 11 (node version is same on both machines) - Front Matter CMS Version 10.8.0 - Browser Edge **Additional context** When running the script i see the following execution in my logs. ``` node "c:\mygitrepo\scripts\event-header.mjs" "c:\mygitrepo" "c:\mygitrepo\content\content.md" "{\"title\":\"SomeTitle\",\"type\":\"event\",\"date\":\"2025-02-25T08:10:19.576Z\",\"image\":\"/wp-content/events/2025/4a982d5f-1f09-4ed1-9ec4-621368fe6b88.webp\",\"lastmod\":\"2025-02-25T08:14:08.442Z\",\"categories\":[\"AI\",\"Agents\",\"Conference\",\"Power Platform\"],\"noauthor\":true,\"eventTitle\":\"eventTitle\",\"eventDate\":\"date\",\"eventLocation\":\"Online\",\"eventUrl\":\"https://www.contoso.com\",\"sessionLevel\":200,\"sessionUrl\":\"https://www.contoso.com/\",\"url\":\"/contoso-event/\",\"slug\":\"contoso-event\",\"fmContentType\":\"event\",\"draft\":true}" ``` After playing around with a little bit and adding some additional logic the same script works on my Surface Laptop Studio (64 bit) while the ARM version fails. I added a `console.log(contentScriptArgs);` that results in the following screenshot: ![Image](https://github.com/user-attachments/assets/e370bf4d-8fa4-4543-8d38-f4d29af14423) The .frontMatter property is not populating properly for some reason.. <!-- github-sync-id:2977020484 -->
adam closed this issue 2026-10-05 03:02:41 +02:00
Author
Owner

Okey, nevermind, is NVM problem. Fixed with some workaround in nvm) (forcing the installation of the arm bits)

Okey, nevermind, is NVM problem. Fixed with some workaround in nvm) (forcing the installation of the arm bits) <!-- github-comment-id:2783543290 -->
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#731