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
require('module-alias/register') ...
package.json
{ ... "_moduleAliases": { "#root": "./", "#src": "./src", "#routes": "./src/routes", "#lib": "./src/lib", "#utils": "./src/lib/utils", "#models": "./src/lib/models", "#decors": "./src/lib/decors", "#schemas": "./src/lib/schemas" } ... }
versions
node: v18.21.1 module-alias: 2.2.2
The text was updated successfully, but these errors were encountered:
and the error??
Sorry, something went wrong.
@qxb3 How did you resolve this issue? In case of mine It throws Can't Find module ?
node:internal/modules/cjs/loader:1042 throw err; ^ Error: Cannot find module '@routersV1/users/usersRouter'
"_moduleAliases": { "@routersV1/*": "./src/routers/v1/*" }
@girixcode7 i didn't i instead use this: #113
Follow this: https://medium.com/zero-equals-false/how-to-use-module-path-aliases-in-visual-studio-typescript-and-javascript-e7851df8eeaa
You might be missing the aliases in tsconfig.json
No branches or pull requests
index.js
package.json
versions
node: v18.21.1
module-alias: 2.2.2
The text was updated successfully, but these errors were encountered: