Skip to content

Error when compiling when using Hapijs #89

Open

Description

@Dindaleon

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

Activity

  1. richardscarrott commented on Aug 12, 2019

    @richardscarrott
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions