Skip to content

fix moduleNameResolver cache#26296

Merged
sheetalkamat merged 5 commits into
microsoft:masterfrom
ajafff:modulenameresolver-cache
Aug 10, 2018
Merged

fix moduleNameResolver cache#26296
sheetalkamat merged 5 commits into
microsoft:masterfrom
ajafff:modulenameresolver-cache

Conversation

@ajafff
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants