Skip to content

Update NPM dependencies to latest (OSOE-952) #160

Open
@Piedone

Description

@Piedone

The module's NPM dependencies are outdated, and Renovate updated them. But, due to breaking changes, manual fixes are necessary.

After updating packages to minor versions, Windows builds will suffer random failures, as explained under #162. It might be that the ESLint versions needs to be kept in sync with Node.js Extensions', see Lombiq/NodeJs-Extensions#116.

After updating packages to major versions, you'll see errors like:

71>E:\ShortPath\OSOCE4\src\Modules\Lombiq.VueJs\Lombiq.VueJs\Assets\Scripts\helpers\vue-sfc-compiler-pipeline.js:1
71>const del = require('del');
71>
71>            ^
71>
71>EXECWITHMUTEX : error [ERR_REQUIRE_ESM]: require() of ES Module E:\ShortPath\OSOCE4\src\Modules\Lombiq.VueJs\Lombiq.VueJs\node_modules\.pnpm\[email protected]\node_modules\del\index.js from E:\ShortPath\OSOCE4\src\Modules\Lombiq.VueJs\Lombiq.VueJs\Assets\Scripts\helpers\vue-sfc-compiler-pipeline.js not supported.
71>Instead change the require of index.js in E:\ShortPath\OSOCE4\src\Modules\Lombiq.VueJs\Lombiq.VueJs\Assets\Scripts\helpers\vue-sfc-compiler-pipeline.js to a dynamic import() which is available in all CommonJS modules.
71>    at Object.<anonymous> (E:\ShortPath\OSOCE4\src\Modules\Lombiq.VueJs\Lombiq.VueJs\Assets\Scripts\helpers\vue-sfc-compiler-pipeline.js:1:13) {
71>  code: 'ERR_REQUIRE_ESM'
71>}
71>
71>Node.js v20.11.0
71>EXECWITHMUTEX : error : "build:vue-sfc" exited with 1.
71>
71>
71>no-path(1,1): error 1: Command failed: pnpm build
71>E:\ShortPath\OSOCE4\src\Modules\Lombiq.VueJs\Lombiq.VueJs\Assets\Scripts\helpers\vue-sfc-compiler-pipeline.js:1
71>const del = require('del');
71>
71>            ^
71>
71>EXECWITHMUTEX : error [ERR_REQUIRE_ESM]: require() of ES Module E:\ShortPath\OSOCE4\src\Modules\Lombiq.VueJs\Lombiq.VueJs\node_modules\.pnpm\[email protected]\node_modules\del\index.js from E:\ShortPath\OSOCE4\src\Modules\Lombiq.VueJs\Lombiq.VueJs\Assets\Scripts\helpers\vue-sfc-compiler-pipeline.js not supported.
71>Instead change the require of index.js in E:\ShortPath\OSOCE4\src\Modules\Lombiq.VueJs\Lombiq.VueJs\Assets\Scripts\helpers\vue-sfc-compiler-pipeline.js to a dynamic import() which is available in all CommonJS modules.
71>    at Object.<anonymous> (E:\ShortPath\OSOCE4\src\Modules\Lombiq.VueJs\Lombiq.VueJs\Assets\Scripts\helpers\vue-sfc-compiler-pipeline.js:1:13) {
71>  code: 'ERR_REQUIRE_ESM'
71>}
71>
71>Node.js v20.11.0
71>EXECWITHMUTEX : error : "build:vue-sfc" exited with 1.
71>
71>EXECWITHMUTEX : error : Command failed: pnpm build
71>E:\ShortPath\OSOCE4\src\Modules\Lombiq.VueJs\Lombiq.VueJs\Assets\Scripts\helpers\vue-sfc-compiler-pipeline.js:1
71>const del = require('del');
71>
71>            ^
71>
71>EXECWITHMUTEX : error [ERR_REQUIRE_ESM]: require() of ES Module E:\ShortPath\OSOCE4\src\Modules\Lombiq.VueJs\Lombiq.VueJs\node_modules\.pnpm\[email protected]\node_modules\del\index.js from E:\ShortPath\OSOCE4\src\Modules\Lombiq.VueJs\Lombiq.VueJs\Assets\Scripts\helpers\vue-sfc-compiler-pipeline.js not supported.
71>Instead change the require of index.js in E:\ShortPath\OSOCE4\src\Modules\Lombiq.VueJs\Lombiq.VueJs\Assets\Scripts\helpers\vue-sfc-compiler-pipeline.js to a dynamic import() which is available in all CommonJS modules.
71>    at Object.<anonymous> (E:\ShortPath\OSOCE4\src\Modules\Lombiq.VueJs\Lombiq.VueJs\Assets\Scripts\helpers\vue-sfc-compiler-pipeline.js:1:13) {
71>  code: 'ERR_REQUIRE_ESM'
71>}
71>
71>Node.js v20.11.0
71>EXECWITHMUTEX : error : "build:vue-sfc" exited with 1.
71>
71>    at ChildProcess.exithandler (node:child_process:422:12)
71>    at ChildProcess.emit (node:events:518:28)
71>    at maybeClose (node:internal/child_process:1105:16)
71>    at ChildProcess._handle.onexit (node:internal/child_process:305:5)

After merging the issue branch, the Renovate PRs should close themselves.

Jira issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions