[Pkg-javascript-devel] need help with building node-dagre-d3-renderer with webpack

Pirate Praveen praveen at onenetbeyond.org
Tue Jun 25 10:37:37 BST 2019


Control: tag -1 help

On Tue, 25 Jun, 2019 at 1:49 PM, Pirate Praveen 
<praveen at onenetbeyond.org> wrote:
> While looking for something else in package.json, I realized, there 
> was a line excluding node_modules and there was two places I needed 
> to update. With the following patch, webpack is successful.

Now there is another error (tried replacing commonjs2 with commonjs, 
also tried with nodejs 12),

   dh_auto_test --buildsystem=nodejs
	/usr/bin/node -e require\(\".\"\)
/<<PKGBUILDDIR>>/dist/dagre-d3.core.js:950
function (node, name, id, index, group, timing) {
         ^

SyntaxError: Unexpected token (
    at new Script (vm.js:79:7)
    at createScript (vm.js:251:10)
    at Object.runInThisContext (vm.js:303:10)
    at Module._compile (internal/modules/cjs/loader.js:657:28)
    at Object.Module._extensions..js 
(internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
dh_auto_test: /usr/bin/node -e require\(\".\"\) returned exit code 1





More information about the Pkg-javascript-devel mailing list