我尝试在 Shopify Remix 应用程序中使用 MUI X Charts,但由于以下错误而无法渲染图表:
export * from './constants'; SyntaxError: Unexpected token 'export'
不太确定如何处理这个问题。预先感谢您的任何建议!
我在 Remix 应用程序中遇到了此错误,并使用此解决了它。
import {Button} from '@mui/material';