Next.js Discord

Discord Forum

jsconfig.json not working on macOS

Unanswered
DollarNavalex posted this in #help-forum
Open in Discord
hello, i'm working on a little project, using next.js and capacitor.js. For ease the dev process, i made this jsconfig.json:
{
    "compilerOptions": {
        "baseUrl": ".",
        "paths": {
            // Global Imports
            "@/*": ["./src/*"],
            "@components/*": ["./src/components/*"],
            "@app/*": ["./src/app/*"],
            "@lib/*": ["./src/lib/*"],
            "@config/*": ["./src/config/*"],

            // Atomic Design
            "@atoms/*": ["./src/components/atoms/*"],
            "@molecules/*": ["./src/components/molecules/*"],
            "@organisms/*": ["./src/components/organisms/*"],
            "@templates/*": ["./src/components/templates/*"]
        }
    }
}

On my Ubuntu computer, everything works fine. But I just switched to my macbook, and now it can't detect the alias import. Both computers runs on the same nodejs and npm version. My macbook have a M2 chip.
Do you have any idea of why macos node doesn't detect jsconfig ?

0 Replies