1

我制作https://codesandbox.io/s/laughing-golick-p4etx?file=/src/components/LinkBtn.js

如果我添加 material-ui 和 @svelte-material-ui/button 但它没有帮助。

ModuleNotFoundError
Could not find module in path: 'material-ui/Button' relative to '/src/components/LinkBtn.js'

codeandbox 依赖项需要添加什么?

4

2 回答 2

0

包添加在@material-ui/core

import {Button} from '@material-ui/core'

import Button from '@material-ui/core/Button'

于 2020-06-17T06:34:31.090 回答
0

我使用了https://unpkg.com/@material-ui/core/umd/material-ui.production.min.js,现在没有任何错误。

于 2020-06-17T06:35:41.577 回答