Kong / Kong/httpsnippet

v3.0.9 Bug: Can't resolve 'fs'

Open
#389 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
242
PR merge metrics
No merged PRs in 30d

Description

v3.0.9 it no longer works on client-side applications. It now relies on the `'fs'` package which is only available in node (and not, for example, the browser). This was not the case on v3.0.1. Please fix.

Contributor guide

Open the contributing guide

Research direction

Compare the v3.0.9 and v3.0.1 package entry points and dependency behavior, focusing on where the client-side build reaches the Node-only 'fs' package. Reproduce the failure in a browser-based application, then verify that the generated client-side bundle works without requiring 'fs' while Node usage remains functional.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.