You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the .mjs demo file leads to the following crash currently:
import { Helmet } from 'react-helmet-async';
^^^^^^
SyntaxError: Named export 'Helmet' not found. The requested module 'react-helmet-async' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'react-helmet-async';
const { Helmet } = pkg;
Solution
This seems to be fixable by adding the currently missing exports key in package.json:
Activity
sai-cb commentedon Apr 9, 2025
Looks like there is a PR for this:
#251
staylor commentedon Mar 6, 2026
#260