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 from outside public doesn't work on dev #878

Open
ruifortes opened this issue Oct 2, 2021 · 2 comments
Open

import from outside public doesn't work on dev #878

ruifortes opened this issue Oct 2, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@ruifortes
Copy link

ruifortes commented Oct 2, 2021

Hello.
I'm importing a file from outside public folder using a "../../" relative path.
It works using build and then serve but not in dev mode.
I get "404 ./public\src\test.js - File not found" (src is a sibling to public)
Using alias also doesn't work in dev mode
Is this a known bug?

@ruifortes ruifortes added the bug Something isn't working label Oct 2, 2021
@marvinhagemeister
Copy link
Member

Thanks for reporting! No, this is not a known bug. Looking at the backslashes I presume you're on a windows machine?

@ruifortes
Copy link
Author

yep... windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants