Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"(!) Module level directives cause errors when bundled, 'use client' was ignored." #1

Open
baradhili opened this issue Aug 4, 2023 · 0 comments

Comments

@baradhili
Copy link

Trying to use https://mui.com/material-ui/ in the svelte-react-kit sample app..

It "seems to work" but vite throws a ton of complaints like this:

(!) Module level directives cause errors when bundled, 'use client' was ignored.
node_modules/@mui/material/Button/index.js (1:0)
1: 'use client';
   ^
2: 
3: export { default } from './Button';

Changes to App.svelte

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant