-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[!] (plugin commonjs--resolver) RollupError: Identifier "fn" has already been declared #5247
Comments
Umm, it seems the error comes from this part. |
Interesting. So this forbidden: var fn;
function fn(){}; but this is allowed: function foo() {
var fn;
function fn(){};
} So if I understand this, the reasoning is that inside a function, the |
I'm getting the same error since the update from 4.3.1 to 4.4.0:
let me know if I should provide more info. |
This issue has been resolved via #5248 as part of rollup@4.4.1. You can test it via |
Rollup Version
4.4.0
Operating System (or Browser)
mac os
Node Version (if applicable)
v20.9.0
Link To Reproduction
https://github.com/putoutjs/bundle
Expected Behaviour
Build without errors
Actual Behaviour
Everything works good with
Rollup
v4.3.1
The text was updated successfully, but these errors were encountered: