[Pkg-javascript-devel] Bug#977667: node-yarnpkg: fix webpack build failure

Pirate Praveen praveen at onenetbeyond.org
Fri Dec 18 14:17:11 GMT 2020


Package: node-yarnpkg
version: 1.22.10+~cs18.39.16-1
Severity: wishlist

I have fixed build dependencies and path in salsa master which is an 
improvement from the version in the archive,

It still has 2 errors, it'd be good if somoene can look at it. 
string-replace-loader is added as a component, so not sure why webpack 
can't find it.

node ./scripts/build-webpack.js
[BABEL] Note: The code generator has deoptimised the styling of 
/usr/share/nodejs/lodash/lodash.js as it exceeds the max of 500KB.
Hash: 1bc7da2bb6fa51c8b3ad
Version: webpack 4.43.0
Time: 62492ms
Built at: 12/18/2020 2:13:14 PM
                     Asset Size Chunks Chunk Names
 artifacts/yarn-1.22.10.js 2.33 MiB 0, 1 artifacts/yarn-1.22.10.js
packages/lockfile/index.js 304 KiB 1 packages/lockfile/index.js
Entrypoint artifacts/yarn-1.22.10.js = artifacts/yarn-1.22.10.js
Entrypoint packages/lockfile/index.js = packages/lockfile/index.js
  [0] /usr/share/nodejs/@babel/runtime/helpers/interopRequireDefault.js 
147 bytes {0} {1} [built]
  [1] external "path" 42 bytes {0} {1} [built]
  [2] /usr/share/nodejs/@babel/runtime/regenerator/index.js 48 bytes 
{0} {1} [built]
  [3] /usr/share/nodejs/@babel/runtime/helpers/asyncToGenerator.js 809 
bytes {0} {1} [built]
  [4] /usr/share/nodejs/@babel/runtime/helpers/defineProperty.js 289 
bytes {0} {1} [built]
  [5] 
/usr/share/nodejs/@babel/runtime/helpers/interopRequireWildcard.js 1.16 
KiB {0} {1} [built]
  [6] /usr/share/nodejs/@babel/runtime/helpers/classCallCheck.js 196 
bytes {0} {1} [built]
  [7] /usr/share/nodejs/@babel/runtime/helpers/createClass.js 596 bytes 
{0} {1} [built]
  [9] ./src/util/fs.js 68.4 KiB {0} {1} [built]
 [10] ./src/errors.js 6.04 KiB {0} {1} [built]
 [11] external "fs" 42 bytes {0} {1} [built]
 [12] ./src/constants.js 6.99 KiB {0} {1} [built]
 [13] /usr/share/nodejs/invariant/invariant.js 1.37 KiB {0} {1} [built]
 [24] ./src/lockfile/index.js 12.3 KiB {0} {1} [built]
[361] ./src/cli/index.js 39.7 KiB {0} [built]
    + 728 hidden modules

WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 
'production' for this value. Set 'mode' option to 'development' or 
'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn 
more: https://webpack.js.org/configuration/mode/

ERROR in ./hash-for-dep/lib/deps-for.js
Module not found: Error: Can't resolve 'string-replace-loader' in 
'/<<PKGBUILDDIR>>'
 @ ./hash-for-dep/lib/deps-for.js 3:10-26
 @ ./src/cli/commands/pack.js
 @ ./src/package-install-scripts.js
 @ ./src/cli/commands/install.js
 @ ./src/cli/commands/upgrade-interactive.js
 @ ./src/cli/commands/global.js
 @ ./src/cli/commands/index.js
 @ ./src/cli/index.js

ERROR in ./src/util/generate-pnp-map-api.tpl.js 1:0
Module parse failed: Unexpected character '#' (1:0)
File was processed with these loaders:
 * ../../../usr/share/nodejs/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
 > #!$$SHEBANG
|
| /* eslint-disable max-len, flowtype/require-valid-file-annotation, 
flowtype/require-return-type */
 @ ./src/util/generate-pnp-map.js 63:36-76
 @ ./src/cli/commands/install.js
 @ ./src/cli/commands/upgrade-interactive.js
 @ ./src/cli/commands/global.js
 @ ./src/cli/commands/index.js
 @ ./src/cli/index.js
rm -rf node_modules



More information about the Pkg-javascript-devel mailing list