webpack-hot-server-middleware icon indicating copy to clipboard operation
webpack-hot-server-middleware copied to clipboard

Error when compiling when using Hapijs

Open Dindaleon opened this issue 6 years ago • 1 comments

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';

Dindaleon avatar Aug 12 '19 06:08 Dindaleon

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?

richardscarrott avatar Aug 12 '19 13:08 richardscarrott