Closed charismafight closed 2 months ago
There are probably some updates needed for webpack. See #488 . For the moment, use Vite. It's the recommended bundler for new projects too.
npm list webpack showed 'webpack@5.94.0', I reinstalled it and still not worked, any further suggestion? In fact, I want to migrate an exsiting project and keep the deployment config, so I create a new project with webpack just for test.
npm list webpack showed 'webpack@5.94.0', I reinstalled it and still not worked, any further suggestion?
In fact, I want to migrate an exsiting project and keep the deployment config, so I create a new project with webpack just for test.
Is it convenient to post a whole smallest project to help me understand and solve the error report?
npm list webpack showed 'webpack@5.94.0', I reinstalled it and still not worked, any further suggestion? In fact, I want to migrate an exsiting project and keep the deployment config, so I create a new project with webpack just for test.
Is it convenient to post a whole smallest project to help me understand and solve the error report?
@zhangmo8 Sure, thanks a lot. vuerouter.zip
npm list webpack showed 'webpack@5.94.0', I reinstalled it and still not worked, any further suggestion? In fact, I want to migrate an exsiting project and keep the deployment config, so I create a new project with webpack just for test.
Is it convenient to post a whole smallest project to help me understand and solve the error report?
@zhangmo8 Sure, thanks a lot. vuerouter.zip
It's working normally. Make sure eslint works when you give us the minimum demo @charismafight vuerouter66.zip
It's working normally.
That's weird, I've tried your version and it's still not worked. ( I just use npm intall and npm run serve)
Make sure eslint works when you give us the minimum demo @charismafight
Okay, I will note that.
What's your Node version and npm version @charismafight
@zhangmo8 node v20.13.1 npm 10.8.2
It's strange that I can run normally in my local.
Are you on Windows? I have the same problem using rspack on Windows
Hi there, I created a new vue project by 'vue create' to test this package, followed the installation and migrating part, I've got 'Uncaught TypeError: Cannot read properties of undefined (reading 'forEach')' error from router.ts. I found out that routes imported from 'vue-router/auto-routes' is undefined. And I have also created another project using vite, and it worked correctly. The only difference is the vite.config.ts and vue.config.js. Anybody can help me solving this problem? Thanks.
export const router = createRouter({ history: createWebHistory(), routes, });