Closed baboon-king closed 3 years ago
请问你这个问题解决了么?
请问你这个问题解决了么?
@liuchao99 you try see https://github.com/antfu/vite-plugin-pwa/issues/64
好像你这个问题解决了么?
@liuchao99 你试试看antfu/vite-plugin-pwa#64
thank you
I am trying to migrate a webpack project to vite and am facing the same issue. How did you resolve it?
error when starting dev server:
Error: The following dependencies are imported but could not be resolved:
utils/history (imported by C:/Users/91959/OneDrive/Desktop/react-boilerplate-bundler/app/reducers.js)
containers/App (imported by C:/Users/91959/OneDrive/Desktop/react-boilerplate-bundler/app/app.jsx)
containers/LanguageProvider (imported by C:/Users/91959/OneDrive/Desktop/react-boilerplate-bundler/app/app.jsx)
file-loader?name=.htaccess!./.htaccess (imported by C:/Users/91959/OneDrive/Desktop/react-boilerplate-bundler/app/app.jsx)
containers/LanguageProvider/reducer (imported by C:/Users/91959/OneDrive/Desktop/react-boilerplate-bundler/app/reducers.js)
Are they installed?
at optimizeDeps (C:\Users\91959\OneDrive\Desktop\react-boilerplate-bundler\node_modules\vite\dist\node\chunks\dep-01eec7aa.js:65328:15)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async runOptimize (C:\Users\91959\OneDrive\Desktop\react-boilerplate-bundler\node_modules\vite\dist\node\chunks\dep-01eec7aa.js:69144:48)
at async Server.httpServer.listen (C:\Users\91959\OneDrive\Desktop\react-boilerplate-bundler\node_modules\vite\dist\node\chunks\dep-01eec7aa.js:69158:17)
This issue has been locked since it has been closed for more than 14 days.
If you have found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Vite version. If you have any other comments you should join the chat at Vite Land or create a new discussion.
Describe the bug
Reproduction
npx vite
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: npm
Logs
Before submitting the issue, please make sure you do the following