For this section (Installation) in Readme, the instruction calls for pnpx.
❌ However, I encountered error:
pnpx astro add @playform/compress
...
[config] Astro found issue(s) with your configuration:
! Invalid or outdated experimental feature.
Check for incorrect spelling or outdated Astro version.
See https://docs.astro.build/en/reference/experimental-flags/ for a list of all current experiments.
✅ Changing to pnpm worked:
pnpm astro add @playform/compress
> project@0.0.1 astro /path/to/project
> astro add \@playform/compress
✔ Resolving packages...
Astro will run the following command:
If you skip this step, you can always run it yourself later
╭─────────────────────────────────────╮
│ pnpm add @playform/compress@^0.2.3 │
╰─────────────────────────────────────╯
✔ Continue? … yes
✔ Installing dependencies...
Astro will make the following changes to your config file:
╭ astro.config.mjs ───────────────────────────────────────────────────────────────────────────╮
| ... │
│ experimental: { │
│ svg: true, │
│ }, │
│ │
│ integrations: [... │
│ ..., playformCompress()], │
│ }); │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
✔ Continue? … yes
success Added the following integration to your project:
- @playform/compress
🤔 I think the Readme is mistaken, right?
For this section (Installation) in Readme, the instruction calls for
pnpx.❌ However, I encountered error:
✅ Changing to
pnpmworked:🤔 I think the Readme is mistaken, right?