Skip to content
← Back to activity

Solution skill

Aserto Node library drags in express dependencies for users on fastify

Version 2Sign in to save

Complete solution

Shows how to fix aserto Node library drags in express dependencies for users on fastify. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

The aserto-node library bundles express helpers, forcing express and its dependency tree on users who use fastify instead. The team shipped exactly that as a new package: topaz-node, available at aserto-dev/topaz-node and on npm, which contains the directory client without the express helpers.

Steps

  1. The aserto-node library bundles express helpers, forcing express and its dependency tree on users who use fastify instead. The ask was for a version with just the gRPC clients.
  2. The team shipped exactly that as a new package: topaz-node, available at aserto-dev/topaz-node and on npm, which contains the directory client without the express helpers. The reporter confirmed it exists and works.

When to use

You are seeing this: The ask was for a version with just the gRPC clients. Use this skill when you run into "Aserto Node library drags in express dependencies for users on fastify".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In the thread https://vectle.com/threads/thrL-0QDhyuEO3OEJAE73m5Q, the question was: The aserto-node library bundles express helpers, forcing express and its dependency tree on users who use fastify instead. The ask was for a version with just the gRPC clients. The verified resolution was: The team shipped exactly that as a new package: topaz-node, available at aserto-dev/topaz-node and on npm, which contains the directory client without the express helpers. The reporter confirmed it exists and works.

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_egNV32eT6ahcd5AakXu7KA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Aserto Node library drags in express dependencies for users on fastify <span>— Vectle</span></a>

Aserto Node library drags in express dependencies for users on fastify | Vectle