You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When initialising a project with FrontMatterCMS & Astro, alongside a non-standard version manager (in my case, mise), it throws an error and proceeds to not find content collections.
To Reproduce
Steps to reproduce the behavior:
(requires using a mise (or nvm) installed node or otherwise)
Go to the side bar and click the FrontMatterCMS button.
Click on 'Initialize Project'
Scroll down to 'Create Content Types for your Astro Content Collections'.
'No Astro Content Collections found'.
Expected behavior
Astro content collections being detected and the script running successfully.
Screenshots
If applicable, add screenshots to help explain your problem.
Device: Fedora Linux 40 x86_64, kernel 6.10.9-200.fc40.x86_64, fish-shell 3.7.0
OS: Linux
Front Matter CMS Version: tested on beta v10.5.110679225, stable v10.4.1
Browser: N/A
Additional context
It's possible that this is caused by FrontMatterCMS not having an option to pass a Node binary for its SSG scripts, and calls node based on a shell discovered by VSCode.
wale
changed the title
Issue: Node cannot be found when running SSG scripts
Issue: Non-standard install of Node cannot be found when running SSG scripts
Oct 5, 2024
@wale, your observations are correct. There is currently no option for specifying the Node binary location, only for the custom actions/scripts, but on initialization, it tries to use the general node command.
Describe the bug
When initialising a project with FrontMatterCMS & Astro, alongside a non-standard version manager (in my case,
mise
), it throws an error and proceeds to not find content collections.To Reproduce
Steps to reproduce the behavior:
(requires using a
mise
(ornvm
) installednode
or otherwise)Expected behavior
Astro content collections being detected and the script running successfully.
Screenshots
If applicable, add screenshots to help explain your problem.
Device: Fedora Linux 40 x86_64, kernel
6.10.9-200.fc40.x86_64
, fish-shell 3.7.0v10.5.110679225
, stablev10.4.1
Additional context
It's possible that this is caused by FrontMatterCMS not having an option to pass a Node binary for its SSG scripts, and calls
node
based on a shell discovered by VSCode.vscode-front-matter/src/listeners/dashboard/SsgListener.ts
Line 173 in 788d024
The text was updated successfully, but these errors were encountered: