Skip to content

fix: not a constructor issue fixed.#72

Open
hariacharya80 wants to merge 1 commit into
subeshb1:masterfrom
hariacharya80:fix/constructor_issues
Open

fix: not a constructor issue fixed.#72
hariacharya80 wants to merge 1 commit into
subeshb1:masterfrom
hariacharya80:fix/constructor_issues

Conversation

@hariacharya80

Copy link
Copy Markdown

There is an issue with the imports for users with TypeScript

TypeError: NepaliDate is not a constructor
    at Module.getDailyRashifal (/Users/apple/projects/rashifal/backend/src/modules/rashifal/rashifal.service.ts:8:19)
    at getDailyRashifal (/Users/apple/projects/rashifal/backend/src/modules/rashifal/rashifal.controller.ts:8:48)
    at Layer.handleRequest (/Users/apple/projects/rashifal/backend/node_modules/router/lib/layer.js:152:17)
    at next (/Users/apple/projects/rashifal/backend/node_modules/router/lib/route.js:157:13)
    at Route.dispatch (/Users/apple/projects/rashifal/backend/node_modules/router/lib/route.js:117:3)
    at handle (/Users/apple/projects/rashifal/backend/node_modules/router/index.js:435:11)
    at Layer.handleRequest (/Users/apple/projects/rashifal/backend/node_modules/router/lib/layer.js:152:17)
    at /Users/apple/projects/rashifal/backend/node_modules/router/index.js:295:15
    at processParams (/Users/apple/projects/rashifal/backend/node_modules/router/index.js:582:12)
    at next (/Users/apple/projects/rashifal/backend/node_modules/router/index.js:291:5)

this PR fixes the issue and makes it compatible with both the import and require statements.

@hariacharya80

Copy link
Copy Markdown
Author

@subeshb1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant