Skip to content
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

ReferenceError: h is not defined #199

Open
santoshgistto opened this issue Aug 1, 2019 · 8 comments
Open

ReferenceError: h is not defined #199

santoshgistto opened this issue Aug 1, 2019 · 8 comments

Comments

@santoshgistto
Copy link

netlify-cms-app.js:174 ReferenceError: h is not defined at HotComponent.render (color.min.js:1) at finishClassComponent (react-dom.development.js:14742) at updateClassComponent (react-dom.development.js:14697) at beginWork (react-dom.development.js:15645) at performUnitOfWork (react-dom.development.js:19313) at workLoop (react-dom.development.js:19353) at renderRoot (react-dom.development.js:19436) at performWorkOnRoot (react-dom.development.js:20343) at performWork (react-dom.development.js:20255) at performSyncWork (react-dom.development.js:20229)

@ddennis
Copy link

ddennis commented Aug 29, 2019

I am having the same issue: ReferenceError: h is not defined

@ddennis
Copy link

ddennis commented Aug 30, 2019

My setup:

output from netlify-cms

netlify-cms-app 2.9.7
cms.js:10 `window.CMS_MANUAL_INIT` flag set, skipping automatic initialization.'
netlify-cms-app.js:135 netlify-cms-core 2.12.2

gatsby-config.js

    {
      resolve: 'gatsby-plugin-netlify-cms',
      options: {
        htmlTitle: `CMS`,
        manualInit: true,
        enableIdentityWidget: true,
        modulePath: `${__dirname}/src/cms/cms.js`,
      },
    

cms.js

import CMS, { init } from "netlify-cms-app"
import * as ColorWidget from "netlify-cms-widget-color/src/index"
CMS.registerWidget("color", ColorWidget.Control);
init({
	config:{
		backend: {
			name: "git-gateway",
			repo: "***",
			branch: "master"
		},

		media_folder: "static/img",
		public_folder: "/img",

		site_url: "https://***.netlify.com/",

		collections: [
			{
                          ....

Any help would be appriciated

@sam-williams
Copy link

Also getting this error with the colour widget

@krzysiekhum
Copy link

I have the same issue. @ekoeryanto

@damian-tripbuddi
Copy link

Me too.

@Migggz
Copy link

Migggz commented Dec 30, 2019

I got the same Error

ReferenceError: h is not defined

@hunterbecton
Copy link

Same error.

@BartoszPiwek
Copy link

BartoszPiwek commented Jul 16, 2020

Workaround solution:

const WidgetColor = require('netlify-cms-widget-color/dist/es/color');

CMS.registerWidget("color", WidgetColor.default.Control);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants