module not found
Unanswered
Torymid wasp posted this in #help-forum
Torymid waspOP
any idea why can't it access the file
next config:
tsconfig.json:
the path did exist but somehow nextjs ???
plz ping me if there's a solution, i've tried everything from google
next config:
const path = require("path")
const nextConfig = {
webpack: (config) => {
config.resolve.alias = {
...config.resolve.alias,
'@': path.resolve(__dirname, './'),
};
return config;
},
}
module.exports = nextConfigtsconfig.json:
{
"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"
}
],
"baseUrl": ".",
"paths": {
"@/components/*": ["components/*"],
"@/*": ["./*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}the path did exist but somehow nextjs ???
plz ping me if there's a solution, i've tried everything from google
"use client"
...
import { siteConfig } from "@/config/site";// this worked
...
// Before i was placing here
// const { GithubIcon, DiscordIcon, HeartFilledIcon, TwitterIcon } = await import("@/components/icons");
export default async function Home() {
const { GithubIcon, DiscordIcon, HeartFilledIcon, TwitterIcon } = await import("@/components/icons"); // still not working im newbie help
return (