node-zendesk
node-zendesk copied to clipboard
SyntaxError: The requested module 'node-zendesk' does not provide an export named 'createClient'
Describe the Bug Using import { createClient } from 'node-zendesk' in a ts project causes ts error.
Example Code
import { createClient } from 'node-zendesk'
const client = createClient({
username: ZENDESK_EMAIL,
token: ZENDESK_TOKEN,
subdomain: ZENDESK_SUBDOMAIN
})
Expected Behavior Should work in ESM ts project.
Actual Behavior SyntaxError: The requested module 'node-zendesk' does not provide an export named 'createClient' at ModuleJob._instantiate (node:internal/modules/esm/module_job:146:21) at async ModuleJob.run (node:internal/modules/esm/module_job:229:5) at async ModuleLoader.import (node:internal/modules/esm/loader:473:24) at async loadPlugin (./node_modules/.pnpm/@[email protected]/node_modules/@fastify/autoload/index.js:257:15) at async Promise.all (index 16) at async autoload (./node_modules/.pnpm/@[email protected]/node_modules/@fastify/autoload/index.js:29:3)
Environment Information
node-zendeskversion: 5.0.13- Node.js version: 20.17.0
- Operating System: OSX
- Any other relevant software versions? "typescript": "^5.5.4",
Additional Context Add any other context about the problem here.