-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Can't find options with ident 'ref--*-*' when Rule.use is a function #8952
Comments
Why do you use |
@evilebottnawi Above |
it is not fixed in latest ver (4.x)?! how to use that in v4? |
Is there any progress about this issue? Still not functional in latest version (4.39.2). |
If I understand the PR correctly, it was merged to the next (v5) branch. Any chance to get this backported for the next minor 4.x release? I also need to define Rule.use as a function and getting this problem. |
/cc @sokra it is solved for webpack@5? |
@jedmonsanto not relevant to the question I'm afraid |
Still not functional in the latest version (4.41.2) |
You can use |
Tried this. Issue still persists. Is there a workaround to this? |
@underflow00 can you create reproducible test repo? |
Isn't the first post already it? I just added |
...cant't we Rule.use function with options until releasing 5.x version ? |
@underflow00 @CressZZ please create reproducible test repo |
This issue had no activity for at least three months. It's subject to automatic issue closing if there is no activity in the next 15 days. |
bump |
Webpack 5 has a better error message for this case. It also fixes some problems here. Anyway you need an |
@sokra so we throw an error when ident doesn't exists? |
Yes. We also have better names for the automatic indents in webpack 5. |
If somebody faced with the issue again, please open a new issue with reproducible test repo, thanks |
Bug report
What is the current behavior?
When Rule.use is a function that return UseEntry With Options, the compilation failed with error "Can't find options with ident 'ref--4-1'"
If the current behavior is a bug, please provide the steps to reproduce.
webpack.config.js
What is the expected behavior?
behavior like it is a UseEntry Array
Other relevant information:
webpack version: 4.29.6
Node.js version: 10.15.3
Operating System: Windows 10
Check out the source and pretty sure it's a bug in RuleSet.js , the options references as RuleSet.references is assigned only when rule.use is an array. Should I make an PR?
The text was updated successfully, but these errors were encountered: