Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

SyntaxError: Unexpected token ) #35

Closed
linhe0x0 opened this issue Mar 1, 2017 · 12 comments
Closed

SyntaxError: Unexpected token ) #35

linhe0x0 opened this issue Mar 1, 2017 · 12 comments
Labels

Comments

@linhe0x0
Copy link

linhe0x0 commented Mar 1, 2017

when I installed version 1.6.0, I got this following error:

vue-demo/node_modules/friendly-errors-webpack-plugin/src/formatters/moduleNotFound.js:39
  );
  ^
SyntaxError: Unexpected token )
    at Object.exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:543:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/sqrtthree/Downloads/vue-demo/node_modules/friendly-errors-webpack-plugin/src/friendly-errors-plugin.js:21:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)

I think this is because that there is a extra comma behind the last argument in line 38.

@christiankossler
Copy link

Got this too. This error also affects rows 39, 49, 83.

@Hendriksie
Copy link

Hendriksie commented Mar 1, 2017

Got the same error after updating,

The reason this is happening is the last comma , in the concat function.

As @christiankossler said, it affects rows 39, 49 and 83.

If you delete these commas everything works again.

@beliolfa
Copy link

beliolfa commented Mar 1, 2017

Same here. I had to comment the import module in vue-cli.

@laurentpayot
Copy link

+1

3 similar comments
@pratikborsadiya
Copy link

pratikborsadiya commented Mar 1, 2017

+1

@xiguaxigua
Copy link

+1

@alaj
Copy link

alaj commented Mar 1, 2017

+1

@simonmurdock
Copy link

+1 currently breaking the latest vue JS

@alaj
Copy link

alaj commented Mar 1, 2017

I use the previous version 1.50 and ok for now. You can try 'npm install friendly-errors-webpack-plugin@1.50 --save'

@simonmurdock
Copy link

simonmurdock commented Mar 1, 2017

I think you mean npm install friendly-errors-webpack-plugin@1.5.0 --save @alaj

but yes this seems to work for me now

@alaj
Copy link

alaj commented Mar 1, 2017

@simonmurdock
Yes. That's what I did. ^_^

@geowarin
Copy link
Owner

geowarin commented Mar 1, 2017

Fixed in 1.6.1

@geowarin geowarin closed this as completed Mar 1, 2017
@geowarin geowarin added the bug label Mar 1, 2017
@syossan27 syossan27 mentioned this issue Mar 2, 2017
christophehurpeau added a commit to christophehurpeau/friendly-errors-webpack-plugin that referenced this issue Mar 2, 2017
christophehurpeau added a commit to christophehurpeau/friendly-errors-webpack-plugin that referenced this issue Mar 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

10 participants