Skip to content

Conversation

@nahanil
Copy link
Contributor

@nahanil nahanil commented Jan 15, 2019

Running npm run build fails with the below error, this ought to stop that from happening (though the err variable will go unused).

Should fix #17

node -v
v8.15.0

npm -v
6.4.1

vue --version
3.3.0
jarrod@zhd02:~/app/zhdict-ng$ npm run build

> zhdict-ng@3.0.1 build /home/jarrod/app/zhdict-ng
> vue-cli-service build

/home/jarrod/app/zhdict-ng/node_modules/vue-cli-plugin-prerender-spa/index.js:101
  } catch {
          ^

SyntaxError: Unexpected token {
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:617:28)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at idToPlugin (/home/jarrod/app/zhdict-ng/node_modules/@vue/cli-service/lib/Service.js:136:14)

What:

Why:

How:

  • I am working based off of develop
  • I have rebased my PR off of develop

Running `npm run build` fails with the below error, this ought to stop that from happening (though the `err` variable will go unused).

Should fix #17 

```
node -v
v8.15.0

npm -v
6.4.1

vue --version
3.3.0
```

```
jarrod@zhd02:~/app/zhdict-ng$ npm run build

> zhdict-ng@3.0.1 build /home/jarrod/app/zhdict-ng
> vue-cli-service build

/home/jarrod/app/zhdict-ng/node_modules/vue-cli-plugin-prerender-spa/index.js:101
  } catch {
          ^

SyntaxError: Unexpected token {
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:617:28)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at idToPlugin (/home/jarrod/app/zhdict-ng/node_modules/@vue/cli-service/lib/Service.js:136:14)
````
@SolarLiner
Copy link
Owner

Thanks for the catch!

@SolarLiner SolarLiner merged commit 52dbc6c into SolarLiner:develop Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix error handling

2 participants