-
Notifications
You must be signed in to change notification settings - Fork 792
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: moduleResolution
is not respected
#4229
Comments
Hey @jgroth 👋 Thanks for reporting this problem! I was able to take a look at your reproduction case and confirm the problem you were seeing. I'll get this labeled accordingly to be ingested into our backlog for our team to work out a solution. Thanks again for letting us know! |
I looked into this and happy to share my findings: Currently Stencils compiler is tightly coupled to the following module settings:
module: ts.ModuleKind.ESNext,
moduleResolution: ts.ModuleResolutionKind.Node10 These settings can't be changed and are ignored by the compiler. Updating the project to use a |
@HansClaasen is correct here (well, in a few ways):
This is likely true, but we'll need to research to validate this:
I've updated this ticket in our backlog to prioritize looking into it further for possible inclusion in v5 |
@rwaskiewicz 👍 - fwiw, I ran into this after creating a package for some common utils and found I was unable to use the "exports" package entry point (recommended). |
Yeah, same for me. |
I also ran into this issue. |
Hey folks, Please do me a favor and add 👍's to the issue summary to upvote it instead of "+1" style comments. GitHub doesn't give us an easy way to track those types of comments, which makes them more likely to not be properly counted when we prioritize issues. Thanks! |
Prerequisites
Stencil Version
3.2.0
Current Behavior
I have a library that is used by my component and the library has sub modules that is using the new
exports
syntax inpackage.json
. My component is importing it something like thisTo get it to work I have set
moduleResolution
intsconfig.json
tonode16
/nodenext
, but when I build my project I get an error sayingVSCode can find the module when I set
moduleResolution
tonode16
, and I can run the TypeScript compiler manually and it will compile, but it seems Stencil is not respecting themoduleResolution
setting intsconfig.json
Expected Behavior
No build errors. Stencil should use the
moduleResolution
specified intsconfig.json
System Info
Steps to Reproduce
Build the included Stencil project
Code Reproduction URL
https://github.com/jgroth/stencil-module-resolution
Additional Information
No response
The text was updated successfully, but these errors were encountered: