enjoycoding / vite-plugin-mock-server

A mock server plugin for Vite.
MIT License
58 stars 13 forks source link

i can't use in vue3 and vite now #15

Closed bettermonster closed 1 year ago

bettermonster commented 2 years ago

"vue": "^3.2.25", "vite": "^2.9.9",

when i run it, it looks like runing right; but i see the page its wrong

page: [vite-plugin-mock-server] no handler found, { url: "/api/hello1", method: "GET" }

log: [vite-plugin-mock-server] [ 'loading mock module', 'D:\html\vben\payroll-system\mocks\sys\user.ts' ] [vite-plugin-mock-server] mock server started. options = { logLevel: 'info', mockRootDir: './mocks', urlPrefixes: [ '/api/' ], mockJsSuffix: '.mock.js', mockTsSuffix: '.mock.ts', noHandlerResponse404: true, mockModules: [] }

JOU-amjs commented 1 year ago

I have the same problem, how to resolve it???