jamielob / reloader

More control over hot code push reloading for your production apps. Designed to replace mdg:reload-on-resume and provide a more production-ready approach.
28 stars 22 forks source link

Cannot read property 'configure' of undefined #9

Closed qrobin closed 8 years ago

qrobin commented 8 years ago

Hello!

I tried to use your package, but seems like Reloader has no methods. What have I done wrong?

I just used basic configuration on client inside main.js file:

Reloader.configure({
    check: false,
    refresh: 'start'
})

image

Also i tried to do:

Have not positive result.

jamielob commented 8 years ago

Hey @ababba15. Import syntax is being worked on currently but isn't implemented. Reloader should just be global for you. So remove your import statement and you can tell your linter it's global using /* global Reloader */.

lorensr commented 8 years ago

Sorry @ababba15 – please call Reloader.configure only on the client, not the server (where it's undefined).