60frames / webpack-hot-server-middleware

:fire: Hot reload webpack bundles on the server
MIT License
324 stars 50 forks source link

Error when compiling when using Hapijs #89

Open Dindaleon opened 5 years ago

Dindaleon commented 5 years ago

I am using hapi instead of express and I am getting the following error when compiling:

node_modules/webpack-hot-server-middleware/index.d.ts:1:32 - error TS2307: Cannot find module 'express'.

1 import { RequestHandler } from 'express';
richardscarrott commented 5 years ago

The types explicitly import 'express' so you may have to require the module rather than import for now.

I've never used this middleware with hapi, how does it work, do you pass a custom requestHandler?