You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for existing issues that already report this problem, without success.
Stencil Version
4.0.1
Current Behavior
On Windows, the dist-custom-elements target generates a dist/components/index.d.ts with some unescaped windows paths:
/* stencil custom elements */export{IconasVIcon}from'..\types\components\icons\icon';export{defineCustomElementasdefineCustomElementVIcon}from'./v-icon';
Expected Behavior
/* stencil custom elements */export{IconasVIcon}from'../types/components/icons/icon';export{defineCustomElementasdefineCustomElementVIcon}from'./v-icon';
@mrginglymus thanks for filing this issue, we recently made a change (in Stencil 4) that changed how paths are normalized in Stencil which is responsible for this regression. I'll take a look at your PR and get this addressed!
@mrginglymus unfortunately I don't have a windows machine handy for testing so I have to rely on our windows CI but I think I have a PR up (#4545) which will address the issue somewhat comprehensively. Is there any chance you could try running a dev build of Stencil to see if it fixes the issue for you?
Excellent, thanks for taking the time to test that out! I'll get that PR reviewed and merged in soon and it will be in the next release if all goes according to plan.
Activity
[-]bug: [/-][+]bug: typescript imports using windows paths[/+]alicewriteswrongs commentedon Jul 5, 2023
@mrginglymus thanks for filing this issue, we recently made a change (in Stencil 4) that changed how paths are normalized in Stencil which is responsible for this regression. I'll take a look at your PR and get this addressed!
Thanks again for filing 🙂
TEST should fail on windows
alicewriteswrongs commentedon Jul 5, 2023
@mrginglymus unfortunately I don't have a windows machine handy for testing so I have to rely on our windows CI but I think I have a PR up (#4545) which will address the issue somewhat comprehensively. Is there any chance you could try running a dev build of Stencil to see if it fixes the issue for you?
If so, you can install it like this:
mrginglymus commentedon Jul 6, 2023
Ah, that looks amazing, thanks so much for the quick and comprehensive response. I'll try and test this afternoon.
mrginglymus commentedon Jul 6, 2023
Yes, that build has worked perfectly for me :)
alicewriteswrongs commentedon Jul 6, 2023
Excellent, thanks for taking the time to test that out! I'll get that PR reviewed and merged in soon and it will be in the next release if all goes according to plan.
TEST should fail on windows
fix(output-targets): fix path normalization logic
alicewriteswrongs commentedon Jul 14, 2023
Just merged #4545, so it will be included in the next Stencil release. Thanks for reporting @mrginglymus!
fix(output-targets): fix path normalization logic (#4545)
rwaskiewicz commentedon Jul 24, 2023
The fix for this issue has been released as a part of today's Stencil v4.0.2 release. As a result, I'm going to close this issue. Thanks!