Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

RangeError: Invalid time value #1085

Open
jazbogross opened this issue Feb 16, 2024 · 1 comment
Open

RangeError: Invalid time value #1085

jazbogross opened this issue Feb 16, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@jazbogross
Copy link

When I create a new post I get an error in the preview window with the following console output:

cms.be93d.js:120 RangeError: Invalid time value
at ne (cms.be93d.js:120:2229572)
at pe (cms.be93d.js:120:2233729)
at xa (cms.be93d.js:120:2121097)
at xl (cms.be93d.js:120:2177952)
at bc (cms.be93d.js:120:2167104)
at vc (cms.be93d.js:120:2167032)
at Oc (cms.be93d.js:120:2166895)
at ac (cms.be93d.js:120:2163702)
at oc (cms.be93d.js:120:2162254)
at k (cms.be93d.js:120:2195364)

Once I enter info into the frontmatter fields and save I get a working preview. There is no problem when editing existing posts. The error only happens at the first instance of creating a new post. I know that open authoring is in Beta, but this was happening before I changed to editorial workflow.

To Reproduce
I created this from the Hugo template. I have made content and layout changes but everything else remains the same and the problem was there before the changes I made so I would think the issue is there from the beginning when spinning up a site from the Hugo template.

Expected behavior
Preview of the changes made in frontmatter on a new post. No error message.

Screenshots
Screenshot 2024-02-16 at 13 20 22

Applicable Versions:

  • Static CMS version: @staticcms/[email protected]
  • Git provider: github
  • Browser version: Brave v 1.62.162

CMS configuration

backend:
  name: github
  repo: saragebran/oikos-archive
  open_authoring: true
publish_mode: editorial_workflow
media_folder: site/static/img
public_folder: /img
local_backend: true
collections:
 [... everything after this point is identical to the template...]
@KaneFreeman KaneFreeman added the bug Something isn't working label Apr 26, 2024
@KaneFreeman KaneFreeman added this to the 4.x milestone Apr 26, 2024
@KaneFreeman
Copy link
Collaborator

Please try updating to the most recent version v4.3.0 and let me know if you are still experiencing this issue. The datepicker library was updates significantly since v4.0.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants