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

import with relative and absolute path -> same variable in <script context="module"> is DIFFERENT! #1051

Closed
masrlinu opened this issue Nov 25, 2021 · 4 comments

Comments

@masrlinu
Copy link

Expected Behavior

The website should output:
same variable:3!
same variable:3!
same variable:3!

...because I import the exact same component three times and increment it three times (one time with an absolute path and two times with a relative path)!

Actual Behavior

The output is:
same variable:1!
same variable:2!
same variable:2!

Additional Information

The reason is that the component included with an absolute path is compiled as another component as the two components, which are included with a relative path! So the one included with an absolute path is incremented one time, while the two components, which are included with a relative path are incremented two times.

It is the same bug, which I created here:
#296

This is just now an example, that this bug has a direct effect on projects and the bug cannot be ignored!

@stale stale bot added the x⁷ ⋅ stale label Jan 25, 2022
@stale
Copy link

stale bot commented Jan 26, 2022

Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it.

@stale stale bot closed this as completed Jan 26, 2022
@masrlinu
Copy link
Author

I think, it's better to not use this plugin, if such a big bug, which creates pain for developers, is now closed without even looking at it!

@shellscape
Copy link
Collaborator

@masrlinu I must be missing your contribution to resolve this issue. Please let us know where your PR is to fix, and we'll be happy to reopen the issue.

You may also find this interesting: http://liberamanifesto.com. Please don't comment on repo management in bug issues.

@masrlinu
Copy link
Author

Yes, sorry! I completely read the manifesto and know that you don't owe me anything. You don't need to fix the bug, but could you please let this bug open, so that everybody, who uses relative and absolute include paths is informed that this is not supported by this plugin and that he should either just use relative or just use absolute paths, but not a combination? Because if he uses a combination, this leads to bugs, whose origin is VERY hard to detect!

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

No branches or pull requests

2 participants