-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
Added speculative test of allowJsImportTypes scenario (should initially fail until fix is applied) #590
Conversation
Took a while to get there but we now have a test that is (I think) failing for the correct reason. Now to apply the fix and see where that takes us. |
…ated as isExternalLibraryImport Suggested by @bsouthga - let's see if this fixes our broken test.
This looks pretty good - seems like the proposed change resolves the issue. The test doesn't pass on TypeScript 1.8 / 2.0 but I think that's probably down to the test itself. When I get a little more time I'll give this a more thorough test and find out why. Since this doesn't seem to break any existing functionality I may look to merge this. |
Ah - total failure on Windows. Think that's down to the regex |
@bsouthga - if you get a moment could you give this fork a test? |
It's possible that with this in place we may no longer need the Will look to experiment with this later. |
Hi John, thanks for taking another look at this -- sorry for not following up, our specific issue was fixed by changing the entry to |
Thanks @bsouthga - that'd be great! |
It looks like that fixed the initial issue ("no exported member") in both the test repo and our private codebase -- however, now I get several issues like this:
The common thing across all those libs is that they have bundled typings listed in |
For posterity, our tsconfig.json is this:
|
Thanks for that @bsouthga - I'd appreciate any more information on that you might have. A repro would be awesome. I'm going to merge this as I think it's an improvement on what was there before. Thanks for your help with this - it's really good of you. In the longer term I think we could probably retire the overt |
@bsouthga it looks like the issue you're now experiencing may be down to an issue in TypeScript's resolution mechanism; see here: microsoft/TypeScript#9854 There are workarounds here: https://stackoverflow.com/questions/41292559/could-not-find-a-declaration-file-for-module-module-name-path-to-module-nam I don't know if they help you? |
Thanks for the links, that is helpful. unfortunately it looks like it might be something else for us, as all those libs seem to have the correct It's very possible there is something else going on, as our TS setup is pretty complicated, I'll keep digging around and report back if there is a clear |
Thanks @bsouthga - I appreciate that. |
No description provided.