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

Error when compiling when using Hapijs #89

Open
Dindaleon opened this issue Aug 12, 2019 · 1 comment
Open

Error when compiling when using Hapijs #89

Dindaleon opened this issue Aug 12, 2019 · 1 comment

Comments

@Dindaleon
Copy link

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
Copy link
Member

richardscarrott commented Aug 12, 2019

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?

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