Error while using @strapi/design-system v1.19.0 in strapi v4.25.0

I’m using @strapi/design-system v1.19.0 and tried to follow the instruction to use the Popover compoment from Strapi Design System (@storybook/cli - Storybook) and when I run the code. It gives me following error:

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, or you might have mixed up default and named imports.

Here is my code:

import React from 'react';
import { Box, Popover } from '@strapi/design-system';
import pluginId from '../../pluginId';

const HomePage = () => {
  return (
      <h1>{pluginId}&apos;s HomePage</h1>
              <button>click me!</button>
            {Array(15).fill(null).map((_, index) => <Box color="neutral800" key={index} padding={3} as="li">

export default HomePage;

This topic has been created from a Discord post (1251329228604178494) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

1 Like

Same error, did you found solution?