We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Fails with an error when resolving import of the js file that has the same-named ".d.ts" type-definition file with 'noTypeDefinitions' set to true
Reproduce: File structure:
src |- bar.ts // ts file with "import something from '@test/foo';" |- foo.js |- foo.d.ts // type-definition file with the same name
The script that resolves imports:
import cabinet from 'filing-cabinet'; const pathToDirectory = './'; const result = cabinet({ partial: '@test/foo', `${pathToDirectory}/bar.ts`, // fileName pathToDirectory, // directory tsConfig: { compilerOptions: { allowJs: true, moduleResolution: 'node', baseUrl: pathToDirectory, paths: { '@test/*': ['*'], } } }, noTypeDefinitions: true, }); console.log('result: ', result);
Expected result:
result: <path_to_directory>/foo.js
Actual result: Fails with the next error:
Error: Could not resolve JS module '@test/foo'
The text was updated successfully, but these errors were encountered:
Fixed via #113
Sorry, something went wrong.
No branches or pull requests
Fails with an error when resolving import of the js file that has the same-named ".d.ts" type-definition file
with 'noTypeDefinitions' set to true
Reproduce:
File structure:
The script that resolves imports:
Expected result:
Actual result:
Fails with the next error:
The text was updated successfully, but these errors were encountered: