-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stuck at Cleaning dist directory: ./dist
#267
Comments
Same issue here. |
I built a new module with :
node.js: v21.7.2 OS: NixOS 23.11.6981.27c13997bf45 (Tapir) x86_64 |
Pfff, 3 hours to found a workaround... I absolutely don't know why... |
I add in new script
I try to run
surprisingly it works, weird. so the It's a really weird bug that prevent me from building it and deploy. Running with gitlab-runner 15.1.0 (76984217)
on r19 WsmDG9NS
Preparing the "docker" executor
00:04
Using Docker executor with image registry.xxx.net/base-images/node:latest ...
Pulling docker image registry.xxx.net/base-images/node:latest ...
Using docker image sha256:85cf476e4b65765f40f755dd52b2e612ed94121756b032f22bf64813987e5584 for registry.xxx.net/base-images/node:latest with digest registry.xxx.net/base-images/node@sha256:01d79cdd9cede6ab3f75367eeeabdfea99c091caf1849c99741240e4949a2dca ...
Preparing environment
00:01
Running on runner-wsmdg9ns-project-29379-concurrent-0 via 5d44f9d38ae3...
Getting source from Git repository
00:02
Fetching changes with git depth set to 20...
Initialized empty Git repository in /builds/username/testmodule/.git/
Created fresh repository.
Checking out 4c7e6272 as development...
Skipping Git submodules setup
Downloading artifacts
00:01
Downloading artifacts for nuxt3_compile (4782240)...
Downloading artifacts from coordinator... ok id=4782240 responseStatus=200 OK token=glcbt-64
Downloading artifacts for trivy (4782242)...
Downloading artifacts from coordinator... ok id=4782242 responseStatus=200 OK token=glcbt-64
Executing "step_script" stage of the job script
01:00
Using docker image sha256:85cf476e4b65765f40f755dd52b2e612ed94121756b032f22bf64813987e5584 for registry.xxx.net/base-images/node:latest with digest registry.xxx.net/base-images/node@sha256:01d79cdd9cede6ab3f75367eeeabdfea99c091caf1849c99741240e4949a2dca ...
$ cd module
$ npm i -g [email protected]
added 1 package in 3s
1 package is looking for funding
run `npm fund` for details
$ pnpm i
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +1011
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1011, reused 0, downloaded 0, added 0
Progress: resolved 1011, reused 0, downloaded 31, added 20
Progress: resolved 1011, reused 0, downloaded 86, added 76
Progress: resolved 1011, reused 0, downloaded 155, added 144
Progress: resolved 1011, reused 0, downloaded 191, added 181
Progress: resolved 1011, reused 0, downloaded 256, added 247
Progress: resolved 1011, reused 0, downloaded 315, added 306
Progress: resolved 1011, reused 0, downloaded 390, added 382
Progress: resolved 1011, reused 0, downloaded 440, added 434
Progress: resolved 1011, reused 0, downloaded 496, added 495
Progress: resolved 1011, reused 0, downloaded 567, added 562
Progress: resolved 1011, reused 0, downloaded 630, added 628
Progress: resolved 1011, reused 0, downloaded 699, added 691
Progress: resolved 1011, reused 0, downloaded 760, added 755
Progress: resolved 1011, reused 0, downloaded 832, added 829
Progress: resolved 1011, reused 0, downloaded 906, added 901
Progress: resolved 1011, reused 0, downloaded 986, added 980
Progress: resolved 1011, reused 0, downloaded 1003, added 1011, done
.../node_modules/vue-demi postinstall$ node -e "try{require('./scripts/postinstall.js')}catch(e){}"
.../node_modules/vue-demi postinstall: Done
.../[email protected]/node_modules/esbuild postinstall$ node install.js
.../[email protected]/node_modules/esbuild postinstall$ node install.js
.../[email protected]/node_modules/esbuild postinstall: Done
.../[email protected]/node_modules/esbuild postinstall: Done
dependencies:
+ @nuxt/kit 3.11.2
devDependencies:
+ @nuxt/devtools 1.2.0
+ @nuxt/eslint-config 0.3.12
+ @nuxt/module-builder 0.6.0
+ @nuxt/schema 3.11.2
+ @nuxt/test-utils 3.12.1
+ @types/node 20.12.11
+ changelogen 0.5.5
+ eslint 9.2.0
+ nuxt 3.11.2
+ typescript 5.4.5
+ vitest 1.6.0
+ vue-tsc 2.0.16
> [email protected] prepare /builds/username/testmodule/module
> nuxt-module-build prepare
[success] Types generated in .nuxt
Done in 27.4s
$ NEXUS_NPM_AUTH=$(echo -n "${CI_REPOSITORY_USER}:${CI_REPOSITORY_TOKEN}" | base64)
$ echo "//xxx.net/repository/npm-hosted/:_auth=${NEXUS_NPM_AUTH}" >> .npmrc
$ pnpm run prepare
> [email protected] prepare /builds/username/testmodule/module
> nuxt-module-build prepare
[success] Types generated in .nuxt
$ pnpm run prepack
> [email protected] prepack /builds/username/testmodule/module
> nuxt-module-build build
[info] Building my-module
[info] Cleaning dist directory: `./dist`
[success] Build succeeded for my-module
[log] dist/runtime (total size: 293 B)
└─ dist/runtime/plugin.mjs (141 B)
└─ dist/runtime/plugin.d.ts (152 B)
[log] dist/module.mjs (total size: 415 B, chunk size: 415 B, exports: default)
Σ Total dist size (byte size): 2.31 kB
[log]
$ pnpm publish --no-git-checks
> [email protected] prepack /builds/username/testmodule/module
> nuxt-module-build build
[info] Building my-module
[info] Cleaning dist directory: `./dist`
[success] Build succeeded for my-module
[log] dist/runtime (total size: 293 B)
└─ dist/runtime/plugin.d.ts (152 B)
└─ dist/runtime/plugin.mjs (141 B)
[log] dist/module.mjs (total size: 415 B, chunk size: 415 B, exports: default)
Σ Total dist size (byte size): 2.31 kB
[log]
> [email protected] prepare /builds/username/testmodule/module
> nuxt-module-build prepare
[success] Types generated in .nuxt
npm notice
npm notice 📦 [email protected]
npm notice === Tarball Contents ===
npm notice 2.0kB README.md
npm notice 227B dist/module.cjs
npm notice 192B dist/module.d.mts
npm notice 192B dist/module.d.ts
npm notice 154B dist/module.json
npm notice 415B dist/module.mjs
npm notice 152B dist/runtime/plugin.d.ts
npm notice 141B dist/runtime/plugin.mjs
npm notice 424B dist/types.d.mts
npm notice 418B dist/types.d.ts
npm notice 1.4kB package.json
npm notice === Tarball Details ===
npm notice name: my-module
npm notice version: 1.0.0
npm notice filename: my-module-1.0.0.tgz
npm notice package size: 2.3 kB
npm notice unpacked size: 5.7 kB
npm notice shasum: bc5771cc73cda4c49c6e59120fce9f9f3f37bc28
npm notice integrity: sha512-UZ+I/9sO9kmX8[...]RUX8e8JX4klEA==
npm notice total files: 11
npm notice
npm notice Publishing to https://xxx.net/repository/npm-hosted/ with tag latest and default access
+ [email protected]
Cleaning up project directory and file based variables
00:02
Job succeeded comparing to my previous attempt, I noticed that ...
+ vue-tsc 2.0.16
> [email protected] prepare /builds/username/testmodule/module
> nuxt-module-build prepare
[success] Types generated in .nuxt
Done in 27.4s
$ NEXUS_NPM_AUTH=$(echo -n "${CI_REPOSITORY_USER}:${CI_REPOSITORY_TOKEN}" | base64)
$ echo "//xxxnet/repository/npm-hosted/:_auth=${NEXUS_NPM_AUTH}" >> .npmrc
$ pnpm run prepare
> [email protected] prepare /builds/ChinKX/testmodule/module
> nuxt-module-build prepare
[success] Types generated in .nuxt
$ pnpm run prepack
> [email protected] prepack /builds/ChinKX/testmodule/module
> nuxt-module-build build
[info] Building my-module
[info] Cleaning dist directory: `./dist`
[success] Build succeeded for my-module
... the log before I use + vue-tsc 2.0.16
Done in 18.7s
$ NEXUS_NPM_AUTH=$(echo -n "${CI_REPOSITORY_USER}:${CI_REPOSITORY_TOKEN}" | base64)
$ echo "//nexus.roqs.basf.net/repository/npm-hosted/:_auth=${NEXUS_NPM_AUTH}" >> .npmrc
$ pnpm run prepack
> [email protected] prepack /builds/ChinKX/testmodule/module
> nuxt-module-build build
[info] Building my-module
[info] Cleaning dist directory: `./dist` |
./dist
./dist
Hey, I've filed a PR with a fix here. Hope that helps! |
Same issue here. |
Hi,
I have been stuck with this error without any solution. When I tried to publish the app to my private npm repository and it got stuck when run prepack.
It's stuck at "cleaning dist directory
./dist
which doesn't make sense because this script is only to remove any files in dist folder if there is a dist folder but for my case, its a brand new docker so it should have continue.Is there any solution because I can't seems to get any further except the log below, any help will be much appreciated, thank you.
package.json
log from the job
The text was updated successfully, but these errors were encountered: