You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to #9121, however in this case it happens whenever there is a .ts file in the root directory with the same name as a node_module package.
Here is a codesandbox example, where just by changing the tsoa.ts file to something else the build will start to correctly import the package.
I believe this current behaviour is incorrect because the import is an absolute path instead of relative path and there are no path maps being applied here
Whenever SWC encounters an import that matches both a node_module and a TS file, the node_module should take precedence IF the import is an absolute path and there are no corresponding path maps
Actual behavior
No response
Version
1.10.6
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Similar to #9121, however in this case it happens whenever there is a
.ts
file in the root directory with the same name as a node_module package.Here is a codesandbox example, where just by changing the
tsoa.ts
file to something else the build will start to correctly import the package.I believe this current behaviour is incorrect because the import is an absolute path instead of relative path and there are no path maps being applied here
Input code
No response
Config
Playground link (or link to the minimal reproduction)
https://github.com/NullScope/swc-ts-node_module-clash
SWC Info output
No response
Expected behavior
Whenever SWC encounters an import that matches both a node_module and a TS file, the node_module should take precedence IF the import is an absolute path and there are no corresponding path maps
Actual behavior
No response
Version
1.10.6
Additional context
No response
The text was updated successfully, but these errors were encountered: