decaporg / decaporg/gatsby-plugin-decap-cms

(0, i.createRoot) is not a function

Open
#4 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6
Forks
3
PR merge metrics
No merged PRs in 30d

Description

While following https://decapcms.org/docs/start-with-a-template/ -> Gatsby Site Starter - deploy to Netlify

The process created repository, deployed the app, and sent invite. Then, after I accepted invite, and created password, I tried to access the /admin page.

The page however appears blank and I get the following error in the console:

```
Uncaught TypeError: (0 , i.createRoot) is not a function
at t.default [as init] (decap-cms-app.js:393:85813)
at cms.js:21:24
at cms.js:29:43
at cms.js:16:37
```

full output:

```
decap-cms-app 3.1.2
decap-cms-app.js:393 decap-cms-core 3.3.2
decap-cms-app.js:393 Uncaught TypeError: (0 , i.createRoot) is not a function
at t.default [as init] (decap-cms-app.js:393:85813)
at cms.js:21:24
at cms.js:29:43
at cms.js:16:37
browser-polyfill.js:1 Returning a Promise is the preferred way to send a reply from an onMessage/onMessageExternal listener, as the sendResponse will be removed from the specs (See https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessage) Error
at n (chrome-extension://dacdinoicboceafielngnmjjplncljhj/lib/js/browser-polyfill.js:1:8113)
n @ browser-polyfill.js:1
Pokaż jeszcze 1 ramkę
Pokaż mniej
decap-cms-app.js:14 Manually initializing identity widget
```

the website:
https://main--neon-pika-ce1973.netlify.app/admin/#/

the repository:
https://github.com/tkozuch/gatsby-starter-decap-cms

is this a known issue? any way I can fix this?

KR

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the blank /admin page from the linked Gatsby starter and inspect cms.js alongside the decap-cms-app 3.1.2 and decap-cms-core 3.3.2 versions shown in the console. Trace the createRoot failure and verify the resulting fix by loading /admin after the Netlify Identity setup; done means the CMS UI renders without that TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.