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
OS: Windows
Terminal: git-bash
NodeJS: v16.15.1
relative-to-alias: 2.0.1
When running: relative-to-alias --src ./ --alias @shared --alias-path ./shared
This original require: require('../../shared/mappers/AddressSqlRecordMapper');
is transformed to require('@shared\\mappers\\AddressSqlRecordMapper');
This transformed require is not valid.
The text was updated successfully, but these errors were encountered:
The package is using Node.js path module to process the updated paths, and on Windows the system separator is \, thus producing double backslash
this could be fixed by simply switching path module to path/posix, I've verified with my local modification
@s-yadav do you think if I should send out a PR on this? changing the imports is easy but apparently I have to also update ESLint import plugin so that the new module could be recognized as Nodejs internals and that would take more time.
OS: Windows
Terminal: git-bash
NodeJS: v16.15.1
relative-to-alias: 2.0.1
When running:
relative-to-alias --src ./ --alias @shared --alias-path ./shared
This original require:
require('../../shared/mappers/AddressSqlRecordMapper');
is transformed to
require('@shared\\mappers\\AddressSqlRecordMapper');
This transformed
require
is not valid.The text was updated successfully, but these errors were encountered: