it run with error:
ReferenceError: require is not defined
at cleanRequireCache (file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite-plugin-mock/dist/index.mjs:128:3)
at getMockConfig (file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite-plugin-mock/dist/index.mjs:157:3)
at createMockServer (file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite-plugin-mock/dist/index.mjs:52:20)
at configResolved (file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite-plugin-mock/dist/index.mjs:246:16)
at file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite/dist/node/chunks/dep-ErEj4WmL.js:66034:24
at Array.map ()
at resolveConfig (file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite/dist/node/chunks/dep-ErEj4WmL.js:66034:10)
at async _createServer (file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite/dist/node/chunks/dep-ErEj4WmL.js:58335:20)
at async CAC. (file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite/dist/node/cli.js:764:24)
node 18 + npm 8.15.0 npm install npm run dev
it run with error: ReferenceError: require is not defined at cleanRequireCache (file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite-plugin-mock/dist/index.mjs:128:3) at getMockConfig (file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite-plugin-mock/dist/index.mjs:157:3) at createMockServer (file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite-plugin-mock/dist/index.mjs:52:20) at configResolved (file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite-plugin-mock/dist/index.mjs:246:16) at file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite/dist/node/chunks/dep-ErEj4WmL.js:66034:24 at Array.map ()
at resolveConfig (file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite/dist/node/chunks/dep-ErEj4WmL.js:66034:10)
at async _createServer (file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite/dist/node/chunks/dep-ErEj4WmL.js:58335:20)
at async CAC. (file:///D:/webstormSpace/com.react/react-admin-design/node_modules/vite/dist/node/cli.js:764:24)