-
Notifications
You must be signed in to change notification settings - Fork 949
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
Polyclip-ts makes my program unable to run. #2800
Comments
Hi @ping-an-na. Are you saying you're having trouble with getting Turf to run? Is there an error message that you can see? Tell us some more information and we can try to help. |
I think what this error is saying is the Javascript in polyclip-ts is more modern that what your Vue application is expecting to see. Don't think it's typescript related. To help troubleshoot, can you please answer some questions? Is this a new project? Or is it an old one? Are your vue and babel versions up to date? Would you mind sharing your package.json, tsconfig.json, and babel configuration? If i were to try to reproduce this myself, is your app a fairly normal Vue 3 app? |
Thank you for your explanation, because I can't fully understand these error messages. This is an old project. I'm using vue2. |
Thanks @ping-an-na. I will take a look. What command are you running when you see that error? |
npm run dev |
npm -v // 6.14.18 |
Thanks @ping-an-na. I tried running the repo you shared, but ran into python errors. Found this article which displays a very similar error, and suggests vue 2.7 should not have this problem: https://stackoverflow.com/a/67282216/3606644 Noticed you are using vue 2.6.10, so are you able to update to 2.7.16 and see if that helps? |
I updated VUE to version 2.7.16 and re-ran it, but there were still error messages and no changes. |
I don't understand what repo means, and I don't know why there are python error. |
That's ok @ping-an-na. repo = repository, https://github.com/ping-an-na/RuiFengDataScreen Try this instead. Add the below
This will tell babel to convert those two libraries to the older version of Javascript your project is using. Then This works even without having to upgrade vue as I suggested above. |
Very, very, very good. |
You're very welcome. Glad we were able to help! Thank you for offering to share the solution with other people. |
I'm sorry I'm a rookie. I have updated to the latest version 7.2.0. Maybe I can't start Polyclip-ts because it is ts.
It's been bothering me all morning.Now I've taken care of him.But I hope I can help you.
The text was updated successfully, but these errors were encountered: