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

Created on 17 Apr 2020  Â·  7Comments  Â·  Source: webpack-contrib/webpack-hot-middleware

Most helpful comment

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

All 7 comments

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.

Sorry,now I see your reply.The solution is as follows.

First step to find this error file:
nuxt-antd-ts-cli/test/node_modules/@nuxt/types/config/build.d.ts

Next step to:
// import { Options as WebpackHotMiddlewareOptions } from 'webpack-hot-middleware'
// hotMiddleware?: WebpackHotMiddlewareOptions & { client: any /* TBD */ }

Finally: restart your project

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

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

Was this page helpful?
0 / 5 - 0 ratings