#error TS2307 Cannot find module

1 messages · Page 1 of 1 (latest)

ivory plinth
#

node_modules/@novu/node/build/main/lib/notification-template/notification-template.interface.d.ts(1,64): error TS2307: Cannot find module 'libs/shared/dist' or its corresponding type declarations.

Getting this ts error in 0.9.0 but 0.8.0 works fine

magic trellisBOT
#

@ivory plinth, you just advanced to level 2!

oak ermineBOT
#

Thanks for posting, one of the <@&949961460384157746> or <@&986960430528331776> will address the matter as soon as possible 🙇‍♂️

fallow reef
#

HI @ivory plinth,
After upgrading to 0.9.0, did you try uninstalling node_modules and running npm run setup:project again?

ivory plinth
#

I removed node_modules and ran npm i

fallow reef
#

Hi kevishie, please run npm run setup:project
it will run few other scripts and will build libs

fallow reef
#

Hi @ivory plinth
Did you try above command?

marble echo
#

@fallow reef having this same issue, although I'm trying to create the ringcentral provider.

In the ringcentral.provider.ts, I get an error that @novu/stateless and @ringcentral/sdk modules are not found with the same error as above

fallow reef
#

Try updating your fork with latest commit.
and run npm run clean and npm run setup:project

marble echo
#

@fallow reef this is what I got

fallow reef
#

Try to use Node version between 13.0.0 and 17.0.0
Currently you have 18.13.0

marble echo
#

using node v16.x.x and getting this error now. I do have the latest commit and have run npm run clean @fallow reef

spare sail
#

@marble echo please remove the @novu/ringcentral dependency from the package.json then run the npm run setup:project

marble echo
magic trellisBOT
#

@marble echo, you just advanced to level 2!

spare sail
#

@marble echo ah ok, if you have a correct name in the package.json of the provider then it should pick it up...
have you tried to remove node_modules?

marble echo
#

It did not work, got the same error as above

spare sail
#

@marble echo could you create a draft PR so I can take a look?

marble echo
#

yes, doing that now, thanks

marble echo
spare sail
#

@marble echo hey you have to do few things in your PR:

  1. Revert the changes in the novu.code-workspace and just add the new provider manually there
  2. Remove the @novu/ringcentral from the package.json of the API
  3. Update the package.json version prop in the ringcentral provider to "version": "0.11.0",
  4. For the new provider add the "npm-run-all": "^4.1.5", to the devDependencies
  5. Run pnpm i if you have pnpm installed globally or npx --yes [email protected] i if you don't
  6. Run npm run build for the ringcentral package, then fix all the TS issues then run it again
  7. Add the @novu/ringcentral to the package.json of the API
  8. Run pnpm i if you have pnpm installed globally or npx --yes [email protected] i if you don't

From this point everything should work, hope it helps...