-
Notifications
You must be signed in to change notification settings - Fork 795
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
bug: ESM build imports from invalid file #3505
Comments
Could it be that the file name generated is too long? |
I don't think the generated filename being too long would do it. We do need a reproduction case to look into this further. Can you do me a favor and use the create-stencil CLI to generate the minimal amount of libraries & code necessary to reproduce the problem as you see in your repository? Thanks! |
Thanks for the issue! This issue has been labeled as Please reproduce this issue in an Stencil starter component library and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed. If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue. For a guide on how to create a good reproduction, see our Contributing Guide. |
Hey @rwaskiewicz ! thanks for the quick reply. For some reason Stencil was trying to bundle 23 files together, and concatenating all of their names + appending the hash. This created a 432 character long filename (the one in the description above) while OSX limit is apparently 255. Maybe this could be looked at in the compiler? |
Hmm interesting! A reproduction case would really help us in that event, as the compiler is a pretty large piece of software. Having something that guarantees us the ability to reproduce the issue is the best way to move forward and look into this further |
right, I will try to get this asap. |
Thank you so much! |
@janarvaez any luck getting a reproduction case together? |
Hey @rwaskiewicz ! really sorry, been swamped finalising a few things in the library. I'll try to get it sorted this week, early next week tops. |
Hi @rwaskiewicz I also had a few other findings, which I added to the readme Please let me know what you think |
Thanks! Making sure that I understand correctly from the repo README:
Is the issue here a lack of guide on working with multiple Stencil libraries at once? |
@rwaskiewicz Well, the issue is there, maybe properly configuring it allows the bundler to do the correct bundle split and is less likely to happen. |
I'm facing this problem in my project. We are not using lazy loading for all components. We are using That's get me a file name in bundle with more than 2000 length. This file concatenates all my components names (127 in total). |
@eusougz 👋 If you'd be willing/able to create a minimal reproduction case, that'd be super helpful for us! |
@rwaskiewicz I see this issue in stencil 4.x as well. In my case it happened in below use case .( I did not use
Note: I think I started observing this issue when I enabled below flags in primitive components like
Update: Check below I have posted an use case where I see this issue. Looks like the culprit is |
Would you be able to put together a minimal reproduction case for us? That'd be super helpful! |
@rwaskiewicz here you go https://github.com/pathi-yugandhar/stencil-filename-issue .. Looks like the main culprit is |
@eusougz does any of your components use |
Yes |
@rwaskiewicz is there any workaround for this problem? My team needs a fix a soon for upcoming release. Any help is really appreciated. |
Not that I'm aware of - the team hasn't had bandwidth to circle back to this issue yet unfortunately |
I'm having some trouble understanding your minimal reproduction case. While I can follow the instructions in README, I'm not entirely sure what the actual failure is here. Can you update the README to help me understand how the bug manifests? |
@rwaskiewicz actual issue is filenames are appended. I have updated README ( https://github.com/pathi-yugandhar/stencil-filename-issue/tree/main ). Once the filenames start appending they keep growing as even we keep adding new components!! |
Prerequisites
Stencil Version
2.17.0
Current Behavior
I have a Stencil library (call it A) that imports another Stencil UI library (call it B), both coded by me.
When building A, the ESM build for one specific component (which comes from B) gets an invalid import:
Expected Behavior
The import references a valid file path
Steps to Reproduce
I'm not sure how to reproduce this outside my repo, maybe you can help me with what could be causing it
Code Reproduction URL
Additional Information
No response
The text was updated successfully, but these errors were encountered: