Closed andreidobrinski closed 4 years ago
React app, bundled with Webpack, deployed with Jenkins. Using p-limit through terser-webpack-plugin.
Jenkins build fails with console output:
/path/to/repo/node_modules/terser-webpack-plugin/node_modules/p-limit/index.js:30 } catch {} ^ SyntaxError: Unexpected token {
I think it's expecting a condition to follow the catch keyword on index.js:30
catch
Perhaps changing the following might work.
try { await result; } catch {}
to
try { await result; } catch (error) {}
Thanks! Please let me know if I can help further
Duplicate of #33
Environment
React app, bundled with Webpack, deployed with Jenkins. Using p-limit through terser-webpack-plugin.
Issue
Jenkins build fails with console output:
Suggestion
I think it's expecting a condition to follow the
catch
keyword on index.js:30Perhaps changing the following might work.
to
Thanks! Please let me know if I can help further