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

Can't insert classic text #1533

Closed
swissspidy opened this issue Jun 28, 2017 · 1 comment · Fixed by #1534
Closed

Can't insert classic text #1533

swissspidy opened this issue Jun 28, 2017 · 1 comment · Fixed by #1534
Labels
[Priority] High Used to indicate top priority items that need quick attention [Type] Bug An existing feature does not function as intended

Comments

@swissspidy
Copy link
Member

Tested using current master (d6b29f6) on Safari on macOS 10.13.

Steps to reproduce:

  1. Click on Gutenberg -> New Post
  2. Open inserter and select "Classic Text"

Expected: A new block is inserted

Actual result: The editor disappears.

JavaScript error in the console
[Error] React caught an error thrown by e. You should fix this error in your code. Consider adding an error boundary to your tree to customize error handling behavior.

Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in.

Check the render method of `e`.

The error is located at: 
    in e (created by e)
    in e (created by edit)
    in edit (created by t)
    in div (created by t)
    in div (created by t)
    in t (created by Connect(t))
    in Connect(t) (created by t)
    in div (created by t)
    in t (created by Connect(t))
    in Connect(t) (created by t)
    in div (created by t)
    in t (created by Connect(t))
    in Connect(t) (created by o)
    in div (created by o)
    in div (created by o)
    in o (created by Connect(o))
    in Connect(o)
    in t
    in Provider

The error was thrown at: 
    invariant@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:154:24,
    createFiberFromElementType@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:11619:16,
    createFiberFromElement@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:11564:41,
    reconcileSingleElement@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:12795:43,
    reconcileChildFibers@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:12905:59,
    reconcileChildrenAtPriority@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:13565:53,
    reconcileChildren@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:13553:32,
    finishClassComponent@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:13698:22,
    performUnitOfWork@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:15966:25,
    workLoop@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:16088:43,
    boundFunc@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:1462:19,
    dispatchEvent@[native code],
    invokeGuardedCallback@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:1476:29,
    performWork@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:16126:42,
    batchedUpdates@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:16572:20,
    batchedUpdatesWithControlledComponents@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:1828:26,
    dispatchEvent@http://local.wordpress.dev/wp-content/plugins/gutenberg/vendor/react-dom.e5cfcfc9.js?ver=4.8:2025:44,
    dispatchEvent@[native code]
	logCapturedError$1 (react-dom.e5cfcfc9.js:11744)
	commitErrorHandling (react-dom.e5cfcfc9.js:16381)
	commitAllLifeCycles (react-dom.e5cfcfc9.js:15699)
	boundFunc (react-dom.e5cfcfc9.js:1462)
	dispatchEvent
	invokeGuardedCallback (react-dom.e5cfcfc9.js:1476)
	commitAllWork (react-dom.e5cfcfc9.js:15798)
	completeUnitOfWork (react-dom.e5cfcfc9.js:15941)
	performWork (react-dom.e5cfcfc9.js:16156)
	batchedUpdates (react-dom.e5cfcfc9.js:16572)
	batchedUpdatesWithControlledComponents (react-dom.e5cfcfc9.js:1828)
	dispatchEvent (react-dom.e5cfcfc9.js:2025)
	dispatchEvent

What sticks out is this: You likely forgot to export your component from the file it's defined in.

So, which one is it?

@swissspidy swissspidy added the [Type] Bug An existing feature does not function as intended label Jun 28, 2017
@swissspidy
Copy link
Member Author

OK, so this seems to happen with existing posts as well.

@mtias mtias added the [Priority] High Used to indicate top priority items that need quick attention label Jun 28, 2017
dratwas pushed a commit that referenced this issue Nov 14, 2019
…in-unsupported-block

Include the block title in unsupported blocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Priority] High Used to indicate top priority items that need quick attention [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants