webpack-contrib / webpack-hot-middleware

Webpack hot reloading you can attach to your own server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ts error: Module '"../../../@types/webpack-hot-middleware"' has no exported member 'Options'.

Javison666 opened this issue · comments

ts error: Module '"../../../@types/webpack-hot-middleware"' has no exported member 'Options'.

import { Options as WebpackHotMiddlewareOptions } from 'webpack-hot-middleware'

How to solve it...?

Hey, can you fix this issue?! :/

@glenjamin or anybody? ^^^ Please!

Please reopen this using the issue template with a reproducible example if you’d like help.

now I have a new idea.

add this to shim.d.ts

declare module "webpack-hot-middleware" {
const middleware: any;
export interface Options {
[proName: string]: any;
}
export default middleware;
}