Skip to content

Can't access property "ref", navigateRegionsProps is undefined #37802

Closed as not planned

Description

@alessandrotesoro

Description

Hi there,

I'm trying to use the @wordpress/interface package in a custom admin page but it's not working when the Gutenberg plugin is disabled. This is the error in the console:

Uncaught TypeError: can't access property "ref", navigateRegionsProps is undefined

Is there no way to use the interface package without the gutenberg plugin being active?

Step-by-step reproduction instructions

  1. Deactivate the gutenberg plugin.
  2. Create a custom admin page and enqueue the js assets.
  3. Create the content of the page by using the InterfaceSkeleton component.

Screenshots, screen recording, code snippet

import { InterfaceSkeleton, FullscreenMode } from "@wordpress/interface";

const AddPage = () => {
	return (
		<InterfaceSkeleton
			header={ <>header</> }
			secondarySidebar={ <>sec side</> }
			sidebar={
				<>side</>
			}
			content={
				<>
					content
				</>
			}
			footer={
				<>footer</>
			}
		/>
	);
}

export default AddPage

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Activity

  1. added
    [Type] BugAn existing feature does not function as intended
    on Aug 18, 2023
  2. jordesign commented on Aug 18, 2023

    @jordesign
    Contributor

    Hey @alessandrotesoro - I know it's been a while, but I wanted to check if this is still an issue for you?

  3. jordesign commented on Aug 31, 2023

    @jordesign
    Contributor

    With no further discussion here I will close the issue. If it still presents in some way - a new issue can be opened with updated details to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Technical FeedbackNeeds testing from a developer perspective.[Package] Interface/packages/interface[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions