Skip to content
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

Impossible to make it work... #6

Open
damienfa opened this issue Jan 9, 2017 · 1 comment
Open

Impossible to make it work... #6

damienfa opened this issue Jan 9, 2017 · 1 comment

Comments

@damienfa
Copy link

damienfa commented Jan 9, 2017

After ever code change I've got :

TypeError: layer.match is not a function
    at matchRoute (/~/express-hot-loader/processor.js:15:1)

It's not compatible with express V4.14.0 or nodejs V7.0 ?

Any help ?

@darul75
Copy link
Owner

darul75 commented Jan 10, 2017

Hi,

I have checked last express version and I guess there are no impact with last version and Router should expose a "stack" with app._router.stack that is what I use in this loader https://github.com/darul75/express-hot-reload/blob/master/processor.js#L69

Can you check you followed mandatory requirements otherwise it won't work, mainly https://github.com/darul75/express-hot-reload#requirements your "app" variable name that has to be declared.

const app = module.exports = express(); // ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants