question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

spread operator in component throwing syntax error

See original GitHub issue

Hello, I’m using vue styleguidist with nuxt, it’s throwing a syntax error when spread operator is used in a component.

Syntax error: Unexpected token
object = {...this.value}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
eashermacommented, Aug 6, 2018

Having the same problem.

0reactions
elevatebartcommented, Mar 14, 2019

should be fine now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

spread operator giving error in react js , saying unexpected ...
I am using spread operator to edit a particular attribute of the object which is stored in a array. But as soon as...
Read more >
Spread syntax (...) - JavaScript - MDN Web Docs - Mozilla
Spread syntax "expands" an array into its elements, while rest syntax collects multiple elements and "condenses" them into a single element.
Read more >
[Solved]-Syntax error from spread attribute-babel.js
How to fix "Support for the experimental syntax 'classProperties' isn't currently enabled" error if it has been already enabled? Mocha throws unexpected token ......
Read more >
JSX Spread operator throws syntax error · Issue #351 · mooz/js2 ...
for example: const x = this.someArray.map((props) => );
Read more >
Error Following React Tutorial spread operator is unexpected ...
I am getting the following error: ./src/index.js SyntaxError: D:\phaser\FullReactCourse\tutorial\src\index.js: Unexpected token (32:36) 30 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found