Closed patrick-Xu closed 3 years ago
https://github.com/vitejs/vite/issues/3107 the same issue
https://github.com/vuejs/vue-next/pull/2477 does this work correctly?
Url is the current server path.
I commented at https://github.com/vitejs/vite/issues/3107#issuecomment-840688149 with an update on this. It seems that Vite 2 seems to have broken this, as originally https://github.com/vuejs/vue-next/pull/2477 was all that was needed to support this. But now Vite 2 is modifying the base during the serve target in a way that breaks things.
Going to close this in favor of https://github.com/vitejs/vite/issues/3107. Later, I may be able to look further into that issue to create a pull request to fix it. However i spent a couple hours on it now and need to move onto other things for the rest of the day (have >100 github issues and slack messages to respond to!)
it didn find this resource in parent application in localhost 8080 ,the correct one should be the child application in localhost 3000。how can i solve this problem?
My comments above explain this - it's a bug in Vite. The issue linked to above is the tracking issue within Vite for this.
Error when i import static resource,any solution for that?thank you.