slidev icon indicating copy to clipboard operation
slidev copied to clipboard

warning suggests to run approve-builds, but there are no packages awaiting approvals

Open fernan opened this issue 6 months ago • 0 comments

Describe the bug

Upon initializing a fresh slidev project with pnpm, a warning is issued regarding

  1. an ignored build script (esbuild), and
  2. a suggestion to run pnpm approve-builds to "pick which dependencies should be allowed to run scripts".

However, upon running the suggested command, the message is: "There are no packages awaiting approval".

Minimal reproduction

Steps to reproduce the behavior:

  1. Run pnpm create slidev
  2. Watch the warning appear
  3. Run pnpm approve-builds
  4. See the message
  5. Keep asking yourself it there is something broken in the installation or how should we approve esbuild so that it is no longer ignored.

Environment

  • Slidev version: v52.0.0
  • Browser: Chrome
  • OS: Linux WSL2; Ubuntu-24.04.2 LTS
  • Node: v24.4.0
  • pnpm: v10.13.1

If you are using Slidev globally (i.e. npx slidev or npm i -g slidev), please try to reproduce the issue in a local project (i.e. npm create slidev@latest).

Typescript

pnpm create slidev

  ●■▲
  Slidev Creator  v52.0.0

✔ Project name: … slidev-test2
  Scaffolding project in slidev-test2 ...
  Done.

✔ Install and start it now? … yes
✔ Choose the package manager › pnpm
Downloading [email protected]: 18.44 MB/18.44 MB, done
Downloading [email protected]: 14.12 MB/14.12 MB, done
Downloading [email protected]: 7.60 MB/7.60 MB, done
Packages: +630
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 674, reused 294, downloaded 336, added 630, done

dependencies:
+ @slidev/cli 52.0.0
+ @slidev/theme-default 0.25.0
+ @slidev/theme-seriph 0.25.0
+ vue 3.5.17

╭ Warning ───────────────────────────────────────────────────────────────────────────────────╮
│                                                                                            │
│   Ignored build scripts: esbuild.                                                          │
│   Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts.   │
│                                                                                            │
╰────────────────────────────────────────────────────────────────────────────────────────────╯

Done in 19.3s using pnpm v10.13.1

> slidev-test2@ dev /home/fernan/git/slidev-test2
> slidev --open



  ●■▲
  Slidev  v52.0.0

  theme       @slidev/theme-seriph
  css engine  unocss
  entry       /home/fernan/git/slidev-test2/slides.md

  public slide show   > http://localhost:3030/
  presenter mode      > http://localhost:3030/presenter/
  slides overview     > http://localhost:3030/overview/
  export slides       > http://localhost:3030/export/
  remote control      > pass --remote to enable

  shortcuts           > restart | open | edit | quit
5:19:15 PM [vite] (client) Failed to load source map for /home/fernan/git/slidev-test2/node_modules/.pnpm/[email protected]/node_modules/monaco-editor/esm/vs/base/common/marked/marked.js.
Error: An error occurred while trying to read the map file at marked.umd.js.map
Error: ENOENT: no such file or directory, open '/home/fernan/git/slidev-test2/node_modules/.pnpm/[email protected]/node_modules/monaco-editor/esm/vs/base/common/marked/marked.umd.js.map'
    at async open (node:internal/fs/promises:640:25)
    at async Object.readFile (node:internal/fs/promises:1277:14)
    at async extractSourcemapFromFile (file:///home/fernan/git/slidev-test2/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-DZ2tZksn.js:8303:65)
    at async loadAndTransform (file:///home/fernan/git/slidev-test2/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-DZ2tZksn.js:26390:22)

(base) ~ 24.04 >>> pnpm approve-builds
There are no packages awaiting approval

fernan avatar Jul 14 '25 17:07 fernan