Skip to content

windows dev-test environment markdown issue - process.cwd, vfile #7125

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

Closed
hip3r opened this issue Feb 29, 2024 · 0 comments · Fixed by #7126
Closed

windows dev-test environment markdown issue - process.cwd, vfile #7125

hip3r opened this issue Feb 29, 2024 · 0 comments · Fixed by #7126
Labels
type: bug code to address defects in shipped code

Comments

@hip3r
Copy link
Contributor

hip3r commented Feb 29, 2024

Describe the bug
On windows system, there is an issue with markdown widget. This happens only when running npm run start, but not when editing active project (deployed on netlify).
Console reports error ´process.cwd is not a function´ from VFile plugin (image 1)

If I try to create new post, it looks ok until I try to edit markdown widget. When I change something in markdown, console reports error process.cwd is not a function. And markdown value is detected as empty (images 2-4)

To Reproduce

  1. on windows run npm run start
  2. click on random post, or go to http://localhost:8080/#/collections/posts/entries/2024-03-01-post-number-20

Expected behavior
markdown field should be loaded and it's value properly detected

Screenshots
image
image
image
image

Applicable Versions:

  • Decap CMS version: 3.1.2
  • Git provider: GitHub
  • OS: Windows 10 Home
  • Browser version Brave 1.63.165 (Chromium 122.0)
  • Node.JS version: 18.19.1

CMS configuration
Issue is replicable on default configuration (config.yml in dev-test)

Additional context
I found the solution, VFile plugin needs to be updated. This should solve the issue vfile/vfile#59
I'll make PR in short

@hip3r hip3r added the type: bug code to address defects in shipped code label Feb 29, 2024
hip3r added a commit to poslovnimediji/decap-cms that referenced this issue Feb 29, 2024
demshy pushed a commit that referenced this issue Mar 1, 2024
* //issues/7102 publish mode allow empty string

* fix: //issues/7125 bump vfile version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant