WebSerialLite
WebSerialLite copied to clipboard
can not build html with pnpm 9.15.0
have installed pnpm 9.15.0 on debian. but the pnpm-lock.yaml ist not compatible with this verison
debian@debian:/media/sf_VBOXTRANSFER/frontend$ pnpm i
WARN Ignoring broken lockfile at /media/sf_VBOXTRANSFER/frontend: Lockfile /media/sf_VBOXTRANSFER/frontend/pnpm-lock.yaml not compatible with current pnpm
Packages: +26
++++++++++++++++++++++++++
ERR_PNPM_EPERM EPERM: operation not permitted, symlink '../../[email protected]/node_modules/base64-js' -> '/media/sf_VBOXTRANSFER/frontend/node_modules/.pnpm/@[email protected]/node_modules/base64-js'
Progress: resolved 23, reused 23, downloaded 0, added 0
how to get it working? is this a simple script wich compress with gzip and write bytes to WebSerialWebPage.h? maybe a python script can do the same?
@harryberlin : you can have a look at https://github.com/mathieucarbou/MycilaWebSerial ;-)
have replaced the pnpm-lock.yaml with yours, but get this error
debian@debian:/media/sf_VBOXTRANSFER/frontend$ pnpm i
WARN Ignoring broken lockfile at /media/sf_VBOXTRANSFER/frontend: Lockfile /media/sf_VBOXTRANSFER/frontend/pnpm-lock.yaml not compatible with current pnpm
Packages: +26
++++++++++++++++++++++++++
ERR_PNPM_EPERM EPERM: operation not permitted, symlink '../../[email protected]/node_modules/base64-js' -> '/media/sf_VBOXTRANSFER/frontend/node_modules/.pnpm/@[email protected]/node_modules/base64-js'
Progress: resolved 26, reused 25, downloaded 1, added 0
I upgraded the lockfile of pnpm to v9, and it works well for me.
If you still encounter this problem, you can delete the lockfile to let pnpm rebuild automatically.
(base) ➜ frontend git:(main) ✗ pnpm i
Lockfile is up to date, resolution step is skipped
Packages: +26
++++++++++++++++++++++++++
Progress: resolved 26, reused 26, downloaded 0, added 26, done
dependencies:
+ @gfx/zopfli 1.0.15
+ html-minifier-terser 7.2.0
Done in 424ms
(base) ➜ frontend git:(main) ✗ pnpm run build
> @ build /Users/atom/Documents/project/WebSerialLite/frontend
> node finalize.js
[finalize.js] Minified index.html | Original Size: 8.76KB | Minified Size: 5.54KB
[finalize.js] Compressed Bundle into WebSerialWebPage.h header file | Total Size: 2.27KB