[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where can we find the source code for scatterD3.js



Hi again,

Am Wed, Aug 03, 2022 at 11:32:42AM +0200 schrieb Julien Barnier:
> > I suspected that I need to install webpack as well and did so - but
> > this did not changed anything
> 
> Ah, sorry again, there was an error in my previous mail, the --dev flag has
> been deprecated, the correct instruction now seems to be :
> 
> $ npm install --production=false

Without any knowledge about npm I was wild-guessing from the error message
I've got from this command line I should rather use:

   npm install --omit=dev

> I've updated the README with (I hope) the correct instruction...

It seemed I also need node-webpack-merge - so here is the updated script
I'm running:

   https://salsa.debian.org/r-pkg-team/r-cran-scatterd3/-/blob/master/debian/missing-sources/get 

I've added also `set -x` here locally and need to confess that it does
not yet work:


...
+ npm install --omit=dev

added 38 packages, and audited 39 packages in 711ms

found 0 vulnerabilities
+ LC_ALL=C R --no-save

R version 4.2.1 (2022-06-23) -- "Funny-Looking Kid"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> install.packages("packer")
Installing package into '/home/andreas/R/x86_64-pc-linux-gnu-library/4.2'
(as 'lib' is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/packer_0.1.3.tar.gz'
Content type 'application/x-gzip' length 55191 bytes (53 KB)
==================================================
downloaded 53 KB

* installing *source* package 'packer' ...
** package 'packer' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (packer)

The downloaded source packages are in
        '/tmp/RtmpreIczh/downloaded_packages'
> packer::bundle_prod()
! Command raised the warning below
running command ''/usr/bin/npm' run production 2>&1' had status 2
> scatterD3@1.0.0 production
> webpack --config webpack.prod.js
[webpack-cli] Failed to load '/home/andreas/debian-maintain/salsa/r-pkg-team/r-cran-scatterd3/debian/missing-sources/scatterD3/webpack.prod.js' config
[webpack-cli] TypeError: merge is not a function
    at Object.<anonymous> (/home/andreas/debian-maintain/salsa/r-pkg-team/r-cran-scatterd3/debian/missing-sources/scatterD3/webpack.prod.js:4:18)
    at Module._compile (node:internal/modules/cjs/loader:1120:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
    at Module.load (node:internal/modules/cjs/loader:998:32)
    at Module._load (node:internal/modules/cjs/loader:839:12)
    at Module.require (node:internal/modules/cjs/loader:1022:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at WebpackCLI.tryRequireThenImport (/usr/share/nodejs/webpack-cli/lib/webpack-cli.js:249:16)
    at loadConfigByPath (/usr/share/nodejs/webpack-cli/lib/webpack-cli.js:1719:30)
    at /usr/share/nodejs/webpack-cli/lib/webpack-cli.js:1774:11
x Failed to bundle files
> 


Unfortunately I have no idea what this might mean and how to fix this.

Kind regards

      Andreas.

-- 
http://fam-tille.de


Reply to: