Coder Social home page Coder Social logo

Meteor.JS install about push.js HOT 6 CLOSED

nickersoft avatar nickersoft commented on May 30, 2024
Meteor.JS install

from push.js.

Comments (6)

Nickersoft avatar Nickersoft commented on May 30, 2024

Hmm... I'm actually not too familiar with Meteor, though it theoretically should work. Perhaps someone else might be able to offer assistance. Adding a "help wanted" tag.

from push.js.

dominicarrojado avatar dominicarrojado commented on May 30, 2024

Yeah there's something that I have not done correctly. This is actually my first time trying npm_modules in meteor.

from push.js.

rafinskipg avatar rafinskipg commented on May 30, 2024

@mroftalp import * as Push from 'push.js';

from push.js.

Molosc avatar Molosc commented on May 30, 2024

Hi
I can import the package into Meteor with npm but I get a "Push.create is not a function" error when I fire it.

Push exist, but with just this properties inside:


Permission:e {_win: Window, DEFAULT: "default", GRANTED: "granted", DENIED: "denied", _permissions: Array(3)}
default:e {_currentId: 0, _notifications: {…}, _win: Window, Permission: e, _agents: {…}, …}
Symbol(__esModule):true
_agents:{desktop: t, chrome: t, firefox: t, ms: t, webkit: t}
_configuration:{serviceWorker: "/serviceWorker.min.js", fallback: ƒ}
_currentId:0
_notifications:{}
_win:Window {stop: ƒ, open: ƒ, alert: ƒ, confirm: ƒ, prompt: ƒ, …}
Symbol(Symbol.toStringTag):"Module"

Any idea? Should I do something more to import correctly @rafinskipg ?
Do you made it work with Meteor @mroftalp ?
It seem to work great! I need it :D

Thank you for help

from push.js.

dominicarrojado avatar dominicarrojado commented on May 30, 2024

@Molosc First, install push. Type this command on your project directory through the terminal. meteor npm install push.js --save. Then when importing, it should be like this: import Push from 'push.js';. That's how I made it work with Meteor.

from push.js.

theLufenk avatar theLufenk commented on May 30, 2024

@Molosc Glad you got it working. Hope this will help others who run into the same situation as you.

from push.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.