We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
webpro
Learn more about funding links in repositories.
Report abuse
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
context: "../"
https://stackblitz.com/edit/github-t8edctpr-diagajp2?file=config%2Fwebpack.config.js
v5.44.4 was fine but I v5.45 started failing to resolve files when context was specified.
context
The demo uses 5.46 and fails:
const path = require('path'); module.exports = { context: path.resolve(__dirname, '../src'), entry: { alpha: './alpha.js', }, };
[.] Unable to resolve deferResolveEntry:src/alpha.js (config/webpack.config.js) [.] Unable to resolve deferResolveEntry:src/alpha.js (config/webpack.config.js) [.] Finding entry paths
Unused files (1) src/alpha.js
But v5.44.4 worked fine:
✂️ Excellent, Knip found no issues.
I think the issue is specifically about ../ because in my tests knip seemed to work correctly when context was ./src instead.
../
./src
The text was updated successfully, but these errors were encountered:
e43f88d
Thanks for the report, should be good with the next release.
Sorry, something went wrong.
🚀 This issue has been resolved in v5.46.1. See Release 5.46.1 for release notes.
Using Knip in a commercial project? Please consider becoming a sponsor.
Confirmed to be fixed, thank you!
Successfully merging a pull request may close this issue.
Prerequisites
Reproduction url
https://stackblitz.com/edit/github-t8edctpr-diagajp2?file=config%2Fwebpack.config.js
Reproduction access
Description of the issue
v5.44.4 was fine but I v5.45 started failing to resolve files when
context
was specified.The demo uses 5.46 and fails:
But v5.44.4 worked fine:
I think the issue is specifically about
../
because in my tests knip seemed to work correctly whencontext
was./src
instead.The text was updated successfully, but these errors were encountered: