ilearnio / module-alias

Register aliases of directories and custom module paths in Node
MIT License
1.74k stars 69 forks source link

Linux support? #119

Closed YT-GameWorks closed 3 years ago

YT-GameWorks commented 3 years ago

I keep getting module not found even though I have required the register file AND set it up correctly in the package.json. Here is my package.json

    "_moduleAliases": {
        "@root": "../",
        "@commands": "../bot/commands",
        "@bot": "../bot",
        "@models": "../bot/models",
        "@utils": "../utils",
        "@server": ".",
        "@controllers": "./controllers"
    },

and all of those directories EXIST. here is the system information:

operating system: Fedora 34 (windows dual boot) Node: v14.17.3 npm: 7.20.2

I switched over to my windows machine, ran the same code and it worked. Is this just the arch background of fedora? Does it work in debian based distros only?

YT-GameWorks commented 3 years ago

Sorry, I was being dumb wrong spelling in the require statement :sweat_smile: