Skip to content

An "error reading file" error was caught when importing based on the current directory #7

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

Closed
linhe0x0 opened this issue Apr 15, 2022 · 2 comments · Fixed by #15
Closed

Comments

@linhe0x0
Copy link

With the following structure, when I try to import reboot.css with @import './reboot.css'; in app.css, an "error reading file" error was caught. For work, I have to import it with @import './src/reboot.css';, but it's confusing.

app
├── package.json
├── postcss.config.js
├── src
│   ├── app.css
│   ├── reboot.css
├── dist
@mike-potter
Copy link

Any chance of getting this added? We really need to support including files relative to the parent css file (current directory). We can't use absolute paths in our includes.

@revelt
Copy link
Collaborator

revelt commented Aug 10, 2023

I patched the @linhe0x0 PR and raised it on #15 — please help to test it — that one was carved off the latest v1.1.0 — thank you

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