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

Packit/specialFileImport doesnt properly try to read folder if any plugin intercepted it. #12

Open
renhiyama opened this issue Oct 4, 2023 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers hacktoberfest For Hacktoberfest Bois help wanted Extra attention is needed

Comments

@renhiyama
Copy link
Contributor

image
I debugged it at so the file name is .reejs/packit/plugins/million/7d335d.jsx which tries to import as:

import { Button } from "../components/ui/button";

Since millionjs plugin intercepted (responded), packit saves the response in its own directory .reejs/packit/plugins/million/<shasum filename>

And then (this place)[https://github.com/rovelstars/reejs/blob/af0fc294a10d4d4b5befadf9a316e0adebdaa0b4/src/imports/specialFileImport.js#L287] things get messy...

@renhiyama renhiyama added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed hacktoberfest For Hacktoberfest Bois labels Oct 4, 2023
@renhiyama
Copy link
Contributor Author

Fun Fact: this issue doesn't occur when running Packit in no-caching mode. This seems to only occur during cached builds (so this might again not occur if this file is being actively edited, which means its running off the cached response.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers hacktoberfest For Hacktoberfest Bois help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant