Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gallagherrchris/b231905547b8035061821e5851b41876 to your computer and use it in GitHub Desktop.
Save gallagherrchris/b231905547b8035061821e5851b41876 to your computer and use it in GitHub Desktop.
Electron Rect Boilerplate Error
[email protected] postinstall C:\project\external\electron-react-boilerplate
> npm run flow-typed && electron-builder install-app-deps package.json && npm run build-dll && opencollective-postinstall
> [email protected] flow-typed C:\project\external\electron-react-boilerplate
> rimraf flow-typed/npm && flow-typed install --overwrite || true
[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4
cli.js install - Installs libdefs into the ./flow-typed directory
Options:
--version Show version number [boolean]
-h, --help Show help [boolean]
--flowVersion, -f The Flow version that fetched libdefs must be compatible
with [string]
--verbose Print additional, verbose info while installing libdefs
[boolean]
--skip, -s Do not generate stubs for missing libdefs [boolean]
--libdefDir, -l Use a custom directory to install libdefs [string]
--cacheDir, -c Directory (absolute or relative path, ~ is not supported)
to store cache of libdefs [string]
--packageDir, -p The relative path of package.json where flow-bin is
installed [string]
--ignoreDeps, -i Dependency categories to ignore when installing
definitions [array] [choices: "dev", "bundled", "peer"]
--rootDir, -r Directory of .flowconfig relative to node_modules[string]
--useCacheUntil, -u Use cache until specified time in milliseconds [number]
Unknown argument: overwrite
• electron-builder version=20.44.4
• loaded configuration file=package.json ("build" field)
• no native production dependencies
> [email protected] build-dll C:\project\external\electron-react-boilerplate
> cross-env NODE_ENV=development webpack --config ./configs/webpack.config.renderer.dev.dll.babel.js --colors
C:\project\external\electron-react-boilerplate\configs\webpack.config.renderer.dev.dll.babel.js:7
import webpack from 'webpack';
^^^^^^
SyntaxError: Unexpected token import
at NativeCompileCache._moduleCompile (C:\project\external\electron-react-boilerplate\node_modules\v8-compile-cache\v8-compile-cache.js:240:18)
at Module._compile (C:\project\external\electron-react-boilerplate\node_modules\v8-compile-cache\v8-compile-cache.js:186:36)
at Module._compile (C:\project\external\electron-react-boilerplate\node_modules\pirates\lib\index.js:99:24)
at Module._extensions..js (module.js:664:10)
at Object.newLoader [as .js] (C:\project\external\electron-react-boilerplate\node_modules\pirates\lib\index.js:104:7)
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 (C:\project\external\electron-react-boilerplate\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
at WEBPACK_OPTIONS (C:\project\external\electron-react-boilerplate\node_modules\webpack-cli\bin\utils\convert-argv.js:114:13)
at requireConfig (C:\project\external\electron-react-boilerplate\node_modules\webpack-cli\bin\utils\convert-argv.js:116:6)
at C:\project\external\electron-react-boilerplate\node_modules\webpack-cli\bin\utils\convert-argv.js:123:17
at Array.forEach (<anonymous>)
at module.exports (C:\project\external\electron-react-boilerplate\node_modules\webpack-cli\bin\utils\convert-argv.js:121:15)
at yargs.parse (C:\project\external\electron-react-boilerplate\node_modules\webpack-cli\bin\cli.js:71:45)
at Object.parse (C:\project\external\electron-react-boilerplate\node_modules\webpack-cli\node_modules\yargs\yargs.js:567:18)
at C:\project\external\electron-react-boilerplate\node_modules\webpack-cli\bin\cli.js:49:8
at Object.<anonymous> (C:\project\external\electron-react-boilerplate\node_modules\webpack-cli\bin\cli.js:366:3)
at Module._compile (module.js:653:30)
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 Object.<anonymous> (C:\project\external\electron-react-boilerplate\node_modules\webpack\bin\webpack.js:156:2)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build-dll: `cross-env NODE_ENV=development webpack --config ./configs/webpack.config.renderer.dev.dll.babel.js --colors`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build-dll script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\AppData\Roaming\npm-cache\_logs\2019-10-01T21_43_49_783Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `npm run flow-typed && electron-builder install-app-deps package.json && npm run build-dll && opencollective-postinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment