OneSignal / onesignal-node-api

OneSignal Node Client
Other
28 stars 12 forks source link

[question]: Getting module not found when using Typescript #44

Closed aslampr07 closed 1 year ago

aslampr07 commented 1 year ago

How can we help?

I am getting the following error when trying to run my typescript project.

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/aslampr07/Desktop/NRIBrokers/nri-server/node_modules/@onesignal/node-onesignal/dist/index.js' imported from /home/aslampr07/Desktop/NRIBrokers/nri-server/dist/utils/notifications.js

Looking at the node_modules, the dist directory is not presented there. It should have present there when installing?

Code of Conduct

aslampr07 commented 1 year ago

Seems like the npm run prepare is not running

kesheshyan commented 1 year ago

Hey @aslampr07 , what version do you use? I should have fixed this problem with the 1.0.0-beta7 version. Please let me know if the problem still persists.

aslampr07 commented 1 year ago

Thanks @kesheshyan, I was using 1.0.0-beta5, update to 1.0.0-beta7 and it is working fine.