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

loader issue #31

Closed
kswat opened this issue Jun 28, 2023 · 2 comments
Closed

loader issue #31

kswat opened this issue Jun 28, 2023 · 2 comments

Comments

@kswat
Copy link

kswat commented Jun 28, 2023

Describe the bug

Loader error

./node_modules/mui-chips-input/dist/mui-chips-input.es.js 56:10
Module parse failed: Unexpected token (56:10)
File was processed with these loaders:

  • ./node_modules/babel-loader/lib/index.js
    You may need an additional loader to handle the result of these loaders.
    To Reproduce
    Steps to reproduce the behavior:
  1. use latest

Expected behavior
compile without issues

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Win 11
  • Browser Chrome
  • Version [e.g. 22]
@bthomasstill
Copy link

bthomasstill commented Jul 12, 2023

On the latest version and seem to be having the same loader issue--

node_modules/mui-chips-input/dist/mui-chips-input.es.js 44:6
Module parse failed: Unexpected token (44:6)
File was processed with these loaders:
 * ../../node_modules/source-map-loader/index.js
You may need an additional loader to handle the result of these loaders.
|     d.key === O.enter && r(i);
|   }, A = (d) => {
>     d?.preventDefault?.(), d?.stopPropagation?.(), r(i);
|   }, b = (d) => {
|     d.target.textContent === y.label && (s || g(i));

Was there an easy fix for this?

@viclafouch
Copy link
Owner

Your config need to handle optional chaining (eg: foo?.bar)

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

3 participants