Aurora

The solution…

Photo by Ilya Babakov on Unsplash

Encountered this error? Try this —

Check your imports. You might have forgotten to import ‘Drawer’.

For instance,

import React, { useRef, useState } from ‘react’;import {Box, Divider, Drawer, IconButton, List, ListItemButton, Toolbar } from ‘@mui/material’;

You show see that the output is now error free. For example,

Compiled successfully!You can now view newproject in the browser.Note that the development build is not optimized.
To create a production build, use yarn build.
webpack compiled successfully
Aurora

Aurora

writer | contemporary | digital nomad | world citizen | founder | Add me on Session? Leave a comment on the post with your Session ID