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

Running an error, what is the reason? #52

Open
zjrwap opened this issue Mar 7, 2022 · 2 comments
Open

Running an error, what is the reason? #52

zjrwap opened this issue Mar 7, 2022 · 2 comments

Comments

@zjrwap
Copy link

zjrwap commented Mar 7, 2022

./node_modules/@pixi-essentials/svg/lib/svg.es.js
Module parse failed: Unexpected token (2429:42)
You may need an appropriate loader to handle this file type.
| {
| const lastCommand = commands[i - 1];
| const lastCp2 = { ...(lastCommand.cp2 || lastCommand.cp) };
|
| if (commands[i - 1].relative)

@ShukantPal
Copy link
Owner

The .es.js files are using ES6. Make sure you support ES6 or use the CommonJS build instead.

@ShukantPal
Copy link
Owner

Or you might be able to configure Babel to run on the .es.js

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