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 access property "ref", navigateRegionsProps is undefined #37802

Closed
alessandrotesoro opened this issue Jan 8, 2022 · 2 comments
Closed
Labels
Needs Technical Feedback Needs testing from a developer perspective. [Package] Interface /packages/interface [Type] Bug An existing feature does not function as intended

Comments

@alessandrotesoro
Copy link

alessandrotesoro commented Jan 8, 2022

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

@Mamaduka Mamaduka added [Package] Interface /packages/interface Needs Technical Feedback Needs testing from a developer perspective. labels Jan 9, 2022
@jordesign jordesign added the [Type] Bug An existing feature does not function as intended label Aug 18, 2023
@jordesign
Copy link
Contributor

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

@jordesign
Copy link
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
Labels
Needs Technical Feedback Needs testing from a developer perspective. [Package] Interface /packages/interface [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants