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