I encountered an issue when running the build command npm run build
locally for my website. However, on Travis CI, it fails with the following error:
> node scripts/build.js
/home/travis/build/PatrickDuncan/patrickduncan.github.io/node_modules/@hapi/hoek/lib/deep-equal.js:39
options = { prototype: true, ...options };
^^^
SyntaxError: Unexpected token ...
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:549:28)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/travis/build/PatrickDuncan/patrickduncan.github.io/node_modules/@hapi/hoek/lib/index.js:9:19)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
I have checked my package.json file and I have included babel-preset-stage-3
. I am unsure why this issue is occurring as there are no extraneous packages installed.
Here is a snippet from my package.json file:
{
// Contents of package.json file
}
System Information:
Node Version: v10.15.1
NPM Version: v6.4.1