NS8 - Dependency error about mark.js after yarn add @nethserver/ns8-ui-lib

Hi friends,

I tried to update the ui files by using yarn add @nethserver/ns8-ui-lib and now the job doesn’t run through anymore.

Github log:

yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@nethserver/ns8-ui-lib > @rollup/plugin-json@4.1.0" has unmet peer dependency "rollup@^1.20.0 || ^2.0.0".
warning "@nethserver/ns8-ui-lib > @rollup/plugin-json > @rollup/pluginutils@3.1.0" has unmet peer dependency "rollup@^1.20.0||^2.0.0".
warning " > sass-loader@10.2.0" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
[4/4] Building fresh packages...
Done in 83.07s.
yarn run v1.22.22
$ vue-cli-service build
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
-  Building for production...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
 ERROR  Failed to compile with 1 error9:09:13 AM
This dependency was not found:
* mark.js in ./node_modules/@nethserver/ns8-ui-lib/dist/ns8-ui-lib.esm.js
To install it, you can run: npm install --save mark.js
 ERROR  Build failed with errors.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error while running runtime: exit status 1
time="2024-12-06T09:09:13Z" level=error msg="exit status 1"
Error: Process completed with exit code 1.

I tried to install the dependency and the npx command but same error again.
Is there a way to completely reset? I also tried git revert and git reset without success…

1 Like

what I do when I need to upgrade @nethserver/ns8-ui-lib

open a new branch
cd ui
yarn add @nethserver/ns8-ui-lib
commit
create a PR
push the PR

1 Like

Hi Markus,

we recently added a new component to ns8-ui-lib that requires mark.js. This is an unexpected side effect, we’ll try to find a solution ASAP.

Thanks

2 Likes

Thanks @andre8244 for clarification. I’m available for testing.

2 Likes

Release 1.2.2 of @nethserver/ns8-ui-lib is available and should solve this issue. You can install it with yarn add @nethserver/ns8-ui-lib

1 Like

Thanks, it works again. :+1:

1 Like