Skip to content

🐛 Bug Report: Framework - cant import NovuModule from '@novu/framework/dist/servers/nest'; #6769

@yunluo1024

Description

@yunluo1024

📜 Description

I am trying to integrate NovuModule into my existing NestJS application, found that Novu released NestJS feature on 10/10/2024, followed the instructions to integrate NovuModule, but cant import NovuModule from "@novu/framework/nest".

👟 Reproduction steps

Followed the instructions from https://docs.novu.co/quickstart/nestjs, tried to import NovuModule from "@novu/framework/nest", seems Novu did not export NovuModule properly, below are npm dependencies.

 "@novu/framework": "^2.3.0",
   "xero-node": "^5.1.0",
    "zod": "^3.23.8",
   "zod-to-json-schema": "^3.23.5"

Cannot find module '@novu/framework/nest' or its corresponding type declarations.
There are types at '/Users/xx/SourceCode/api/node_modules/@novu/framework/dist/servers/nest.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.ts(2307)

👍 Expected behavior

should be able use nest NovuModule

👎 Actual Behavior with Screenshots

Screenshot 2024-10-25 at 9 22 31 AM

Novu version

Novu framework 2.3.0

npm version

10.8.2

node version

20.17.0

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions