Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import static resource error #4

Closed
patrick-Xu opened this issue May 8, 2021 · 7 comments
Closed

import static resource error #4

patrick-Xu opened this issue May 8, 2021 · 7 comments

Comments

@patrick-Xu
Copy link

Error when i import static resource,any solution for that?thank you.

image

image

@lovetingyuan
Copy link

vitejs/vite#3107 the same issue

@lovetingyuan
Copy link

vuejs/core#2477 does this work correctly?

@patrick-Xu
Copy link
Author

Url is the current server path.
image

@joeldenning
Copy link
Owner

I commented at vitejs/vite#3107 (comment) with an update on this. It seems that Vite 2 seems to have broken this, as originally vuejs/core#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.

@joeldenning
Copy link
Owner

Going to close this in favor of vitejs/vite#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!)

@patrick-Xu
Copy link
Author

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?
image

@joeldenning
Copy link
Owner

My comments above explain this - it's a bug in Vite. The issue linked to above is the tracking issue within Vite for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants