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

in ./node_modules/emoji-mart/dist/index.js #613

Closed
chenzl0723 opened this issue Jun 7, 2022 · 2 comments · Fixed by #619
Closed

in ./node_modules/emoji-mart/dist/index.js #613

chenzl0723 opened this issue Jun 7, 2022 · 2 comments · Fixed by #619

Comments

@chenzl0723
Copy link

image
ERROR Failed to compile with 1 errors 下午5:50:09

error in ./node_modules/emoji-mart/dist/index.js

Module parse failed: Unexpected token (1920:23)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/co
ncepts#loaders
| return darkMedia.matches ? 'dark' : 'light';
| }

handleClickOutside = (e)=>{                                                                                                                   

| const { element: element } = this.props;
| if (e.target != element) {

@ ./src/components/operator/index.tsx 12:0-36 148:8-14
@ ./src/pages/groupChat/index.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./node_modules/umi/node_modules/@umijs/preset-built-in/bundled/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js ./src/.umi/
umi.ts

@EtienneLem
Copy link
Member

I think this is a webpack issue, you might need to update it. Or load EmojiMart with babel: https://stackoverflow.com/a/42064325

@chenzl0723
Copy link
Author

chenzl0723 commented Jul 13, 2022 via email

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

Successfully merging a pull request may close this issue.

2 participants