-
Notifications
You must be signed in to change notification settings - Fork 6
Can't build #3
Description
npm run build shows following error:
HTML2PDF@1.0.0 build \github.com\js-html-to-pdf
webpack -p
Hash: 967c0d2d6d3fe88190ba
Version: webpack 2.2.1
Time: 132ms
Asset Size Chunks Chunk Names
pdfexport.min.js 2.95 kB 0 [emitted] main
[0] ./main.js 2.44 kB {0} [built] [failed] [1 error]
ERROR in ./main.js
Module build failed: Error: The node API for babel has been moved to babel-core.
at Object. (\github.com\js-html-to-pdf\node_modules\babel\index.js:1:69)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at loadLoader (\github.com\js-html-to-pdf\node_modules\loader-runner\lib\loadLoader.js:13:17)
at iteratePitchingLoaders (\github.com\js-html-to-pdf\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
at runLoaders (\github.com\js-html-to-pdf\node_modules\loader-runner\lib\LoaderRunner.js:362:2)
at NormalModule.doBuild (\github.com\js-html-to-pdf\node_modules\webpack\lib\NormalModule.js:129:2)
at NormalModule.build (\github.com\js-html-to-pdf\node_modules\webpack\lib\NormalModule.js:180:15)
at Compilation.buildModule (\github.com\js-html-to-pdf\node_modules\webpack\lib\Compilation.js:142:10)
at moduleFactory.create (\github.com\js-html-to-pdf\node_modules\webpack\lib\Compilation.js:424:9)
at \github.com\js-html-to-pdf\node_modules\webpack\lib\NormalModuleFactory.js:242:4
at \github.com\js-html-to-pdf\node_modules\webpack\lib\NormalModuleFactory.js:93:13
at \github.com\js-html-to-pdf\node_modules\tapable\lib\Tapable.js:204:11
at NormalModuleFactory.params.normalModuleFactory.plugin (\github.com\js-html-to-pdf\node_modules\webpack\lib\CompatibilityPlugin.js:52:5)
at NormalModuleFactory.applyPluginsAsyncWaterfall (\github.com\js-html-to-pdf\node_modules\tapable\lib\Tapable.js:208:13)
at onDoneResolving (\github.com\js-html-to-pdf\node_modules\webpack\lib\NormalModuleFactory.js:68:11)
at onDoneResolving (\github.com\js-html-to-pdf\node_modules\webpack\lib\NormalModuleFactory.js:189:6)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! HTML2PDF@1.0.0 build: webpack -p
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the HTML2PDF@1.0.0 build script 'webpack -p'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the HTML2PDF package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack -p
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs HTML2PDF
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls HTML2PDF
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! \github.com\js-html-to-pdf\npm-debug.log