godaddy / godaddy/kubernetes-client

Getting error while compiling the code

Open
#489 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
963
Forks
189
PR merge metrics
No merged PRs in 30d

Description

const Client = require('kubernetes-client').Client;

SyntaxError: C:\Users\srinivasulu.p03\Desktop\my-app\node_modules\@panva\jose\lib\errors.js: Unexpected character '#' (40:2)

const isMulti = e => e instanceof JOSEMultiError
class JOSEMultiError extends JOSEError {
> #errors
^

constructor (errors) {
super()

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the shown require('kubernetes-client').Client failure on the reported Windows setup, then inspect node_modules/@panva/jose/lib/errors.js at the private-field declaration. Compare the installed runtime and dependency versions with this syntax error; done means the client can be loaded without the compilation failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, kubernetes, node.js
Domain
backend-api-design, build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.