Module not found @components/ error - Vercel
Unanswered
Greater White-fronted Goose posted this in #help-forum
Greater White-fronted GooseOP
Top works but bottom doesn't, I'm using shadcn.
my tsconfig
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}my tsconfig
4 Replies
Greater White-fronted GooseOP
And no it's not case sensitive stuff
Greater White-fronted GooseOP
lol 🤣
const nextConfig = {
output: 'standalone',
webpack: (config, { isServer }) => {
config.resolve.alias['@'] = path.join(__dirname, 'src');
return config;
},
}
output: 'standalone',
webpack: (config, { isServer }) => {
config.resolve.alias['@'] = path.join(__dirname, 'src');
return config;
},
}
added this and it solved but ruined my other components