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

Syntax Error: Unexpected token { from Try/Catch in install script #966

Closed
ecrookoh opened this issue Oct 19, 2020 · 3 comments · Fixed by #967
Closed

Syntax Error: Unexpected token { from Try/Catch in install script #966

ecrookoh opened this issue Oct 19, 2020 · 3 comments · Fixed by #967
Labels
bug Something isn't working

Comments

@ecrookoh
Copy link

The addition of an unbound catch in v1.18.5 193bf0f prevents building when using earlier versions of node.
Passing the error object to the catch may prevent this error from occurring: catch(err){} instead of catch{}

Project Information
Node: 8.12.0
tsparticles: 1.18.5

I've reverted to a previous version of tsparticles for now. Although I'd like to, I'm unable to update the version of node at this time. Let me know if there is any other information that would be helpful.

Error from Build

tsparticles@1.18.5 install /home/gitlab-runner/builds/t8r7aAZg/0/fe/reactpaxwizard/node_modules/tsparticles
node ./scripts/install.js
/home/gitlab-runner/builds/t8r7aAZg/0/fe/reactpaxwizard/node_modules/tsparticles/scripts/install.js:82
} catch {
^
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3`

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.81. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the bug Something isn't working label Oct 19, 2020
@matteobruni matteobruni linked a pull request Oct 19, 2020 that will close this issue
@matteobruni
Copy link
Collaborator

Thanks for reporting the issue, the fix will be released soon in 1.18.6, you can keep the 1.18.4 for now

@matteobruni matteobruni added this to Reviewer approved in High Priority Oct 21, 2020
High Priority automation moved this from Reviewer approved to Done Oct 21, 2020
@ecrookoh
Copy link
Author

Thank you for the fix, the new version is working perfectly for me!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
No open projects
High Priority
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants