[solved] Running into build error with import even when it works locally.

Have a file Layout.tsx importing Header.tsx both in same directory, but still runs into build error.
37 Replies
Mehul Sharma
Mehul Sharma2y ago
Samathingamajig
do you have a default export in Header.tsx?
Mehul Sharma
Mehul Sharma2y ago
yep
Mehul Sharma
Mehul Sharma2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mehul Sharma
Mehul Sharma2y ago
im a bit new to Ts not sure what that is
Samathingamajig
did you create this app with create-t3-app?
Mehul Sharma
Mehul Sharma2y ago
unfortunately the time i created this was using create-next-app (also new to t3)
Samathingamajig
Running into build error with import even when it works locally.
is this a build error when deploying ?
Mehul Sharma
Mehul Sharma2y ago
have this:
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
in tsconfig
Samathingamajig
thats what your question implies
Mehul Sharma
Mehul Sharma2y ago
yep
Samathingamajig
do you have a github repo for this?
Mehul Sharma
Mehul Sharma2y ago
yep but it's private atm not sure if i have the rights to show
Samathingamajig
on vercel or something else?
Want results from more Discord servers?
Add your server