Skip to content

Cannot read property 'helmetInstances' of undefined #96

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

Open
mschipperheyn opened this issue Dec 7, 2018 · 4 comments
Open

Cannot read property 'helmetInstances' of undefined #96

mschipperheyn opened this issue Dec 7, 2018 · 4 comments

Comments

@mschipperheyn
Copy link

staylor/react-helmet-async#32
I have the problem described above and it's indicated as happening in react-async-component.

Any suggestions?

@oyeanuj
Copy link

oyeanuj commented Dec 24, 2018

@mschipperheyn How did you end up fixing this? Running into the same thing..

@mschipperheyn
Copy link
Author

I did not yet.

@mschipperheyn
Copy link
Author

@ctrlplusb did you have a look here yet? staylor/react-helmet-async#32

@justnixx
Copy link

justnixx commented Jan 7, 2025

You are likely missing the HelmetProvider, which is required. Did you wrap your App component with HelmetProvider? Here's an example:

import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { BrowserRouter as Router } from 'react-router';
import { HelmetProvider } from 'react-helmet-async';

import App from './App.tsx';

import './index.css';

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <Router>
      <HelmetProvider>
        <App />
      </HelmetProvider>
    </Router>
  </StrictMode>
);

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

3 participants