GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — authenticationClient - Not callable compilation error when using TS module Nodenext · Issue #3343 · feathersjs/feathers

authenticationClient - Not callable compilation error when using TS module Nodenext  #3343

New issue
Copy link
New issue
Copy link
Open
Open
authenticationClient - Not callable compilation error when using TS module Nodenext #3343
Copy link

Description

@elvince
elvince
opened on Nov 20, 2023
Issue body actions

Steps to reproduce

Set module as NodeNext

in client.ts:
import authenticationClient from '@feathersjs/authentication-client';

client.configure(authenticationClient());

Expected behavior

no error

Actual behavior

Type 'typeof import("xxx/node_modules/@feathersjs/authentication-client/lib/index")' has no call signatures.

Module versions (especially the part that's not working):

NodeJS version: 20.9

Operating System: W10

Module Loader: 5.0.11

Thanks,

Activity

  1. daffl commented on Nov 27, 2023

    @daffl
    daffl
    on Nov 27, 2023
    Member
    More actions

    Does import { default as authenticationClient } from '@feathersjs/authentication-client' work?

  2. elvince commented on Nov 28, 2023

    @elvince
    elvince
    on Nov 28, 2023
    Author
    More actions

    no this doesn't work.
    The only thing that works is this ugly fix:

    import authenticationClientModule from '@feathersjs/authentication-client';
      const authenticationClient =
        authenticationClientModule as unknown as typeof authenticationClientModule.default;
    

    Is there a way to fix on your side the typings so it works without hack?

  3. daffl
    modified the milestone: v6 on Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.