Skip to content

fix moduleNameResolver cache #26296

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

Merged
merged 5 commits into from
Aug 10, 2018

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Aug 8, 2018

Fixes: #26271

@sheetalkamat could you please review?

@@ -0,0 +1,28 @@
tests/cases/compiler/monorepo/context/src/bindingkey.ts(1,29): error TS2307: Cannot find module '@loopback/context'.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, the changed baseline shows a bug in the test. It always worked because of the caching bug. Now it can no longer resolve the module. Should I fix that test?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please, Can you please change import to context instead? Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the path where the symlink is located so it can be resolved now. I didn't want to change any import paths as I don't know exactly what this test does.

originalPath: "/sub/node_modules/a/index.ts",
packageId: undefined,
resolvedFileName: "/modules/a.ts",
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add test that in file "/sub/foo.ts" "a" resolves same as this.

@sheetalkamat
Copy link
Member

Looks good but we should wait to merge this till review comments are fixed. Thanks.

@sheetalkamat sheetalkamat merged commit c8e10a9 into microsoft:master Aug 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants