Closed bishsbytes closed 1 year ago
Yeah, suddenly broke our applications. Will be reverting temporarily to beta4 until it's fixed.
Even for beta4, I'm receiving this error.
Error: Cannot find module '/usr/src/app/node_modules/@onesignal/node-onesignal/dist/index.js'
at createEsmNotFoundErr (node:internal/modules/cjs/loader:960:15)
at finalizeEsmResolution (node:internal/modules/cjs/loader:953:15)
at resolveExports (node:internal/modules/cjs/loader:482:14)
at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/usr/src/app/dist/notification/dal/one-signal/notification-database.service.js:23:32)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
Hey guys, thanks for reporting this issue. It seems like we are having some problem with the NPM publish GitHub action that for some reason does not pick up the dist/ folder. I'm currently trying to fix this problem and I'll update this issue when it's done.
Meanwhile, as a temporally solution you can go to
node_modules/@onesignal/node-onesignal/
and run the following command manually: npm run build
It seems like I was able to fix this issue. Please checkout out to the version 1.0.0-beta7
Please feel free to reopen this issue if the problem persists.
What happened?
The latest NPM package doesn't contain the 'dist' folder, so the module can't be included.
Steps to reproduce?
What did you expect to happen?
To work.
Have had to fix my dependency to 1.0.0-beta4 for my project to build and run.
Relevant log output
Code of Conduct