New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have installed push.js but it still don't run on node.js backend #292
Comments
Same problem! |
The error states: |
This is the npm library used in front-end web pages and cannot be used in nodejs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I installed push.js as a
npm
module but I don't understand after my server is started and rendered index.html, I see the following as an error:Please try to understand why I want to do so, in my backend I fetch a value from the frontend's form and then process it and if it is in the range I need to send a push notification somehow to the frontend user which I am failing to do so because of the above error.
I am able to send a notification by making a
notify button
on the frontend and if the user press it, as I included the .js files in my HTML and things work fine, but I just don't understand what is the use ofnpm install push.js
if a node.js backend is unable to send the notification to frontend when desired.The text was updated successfully, but these errors were encountered: