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 parse failed: Unexpected token (969:13) #127

Open
elshobokshy opened this issue Jun 20, 2022 · 2 comments
Open

Module parse failed: Unexpected token (969:13) #127

elshobokshy opened this issue Jun 20, 2022 · 2 comments

Comments

@elshobokshy
Copy link

Hi, any idea what might be causing this?

ERROR  Failed to compile with 1 errors                                                                                                                                                                4:47:14 PM

 error  in ./node_modules/ms-dropdown/src/js/lib/ddmaker.js

Module parse failed: Unexpected token (969:13)
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/concepts#loaders
|      * @private
|      */
>     _isArray = function(obj) {
|         return (Object.prototype.toString.call(obj) === "[object Array]");
|     };

webpack compiled with 1 error and 1 warning
@marghoobsuleman
Copy link
Owner

Looks like webpack loader issue.

@elshobokshy
Copy link
Author

elshobokshy commented Jun 21, 2022

Looks like webpack loader issue.

There's no proper documentation on how to install the plugin using yarn/npm. I'm not sure what webpack issue this might be. I got no problems with my other packages :)
I'm doing a simple import 'ms-dropdown'; with babel-loader v8.0.0

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

2 participants