#error TS2307 Cannot find module
1 messages · Page 1 of 1 (latest)
@ivory plinth, you just advanced to level 2!
Thanks for posting, one of the <@&949961460384157746> or <@&986960430528331776> will address the matter as soon as possible 🙇♂️
HI @ivory plinth,
After upgrading to 0.9.0, did you try uninstalling node_modules and running npm run setup:project again?
I removed node_modules and ran npm i
Hi kevishie, please run npm run setup:project
it will run few other scripts and will build libs
Hi @ivory plinth
Did you try above command?
@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
Try updating your fork with latest commit.
and run npm run clean and npm run setup:project
@fallow reef this is what I got
Try to use Node version between 13.0.0 and 17.0.0
Currently you have 18.13.0
using node v16.x.x and getting this error now. I do have the latest commit and have run npm run clean @fallow reef
@marble echo please remove the @novu/ringcentral dependency from the package.json then run the npm run setup:project
@spare sail following the documentation (https://docs.novu.co/community/create-provider/#add-provider-handler-in-the-api) to add a provider, I have to manually include it in the package.json before running the command
@marble echo, you just advanced to level 2!
@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?
that's the issue, it doesn't. Let me remove node modules and try again.
It did not work, got the same error as above
@marble echo could you create a draft PR so I can take a look?
yes, doing that now, thanks
@spare sail
https://github.com/novuhq/novu/pull/2850
@marble echo hey you have to do few things in your PR:
- Revert the changes in the
novu.code-workspaceand just add the new provider manually there - Remove the
@novu/ringcentralfrom thepackage.jsonof the API - Update the
package.jsonversion prop in the ringcentral provider to"version": "0.11.0", - For the new provider add the
"npm-run-all": "^4.1.5",to the devDependencies - Run
pnpm iif you have pnpm installed globally ornpx --yes [email protected] iif you don't - Run
npm run buildfor the ringcentral package, then fix all the TS issues then run it again - Add the
@novu/ringcentralto thepackage.jsonof the API - Run
pnpm iif you have pnpm installed globally ornpx --yes [email protected] iif you don't
From this point everything should work, hope it helps...