.tsx file being parsed as .ts
Unanswered
Dax posted this in #help-forum
DaxOP
I have tried everything, still doesn't work. Refer: https://discord.com/channels/752553802359505017/1364887668726566962
3 Replies
What kind of syntax errors are you getting? Can you also post some relevant code that is causing those errors?
$ next dev --turbopack
▲ Next.js 15.3.0 (Turbopack)
- Local: http://localhost:3000
- Environments: .env
✓ Starting...
✓ Compiled middleware in 446ms
✓ Ready in 1725ms
○ Compiling /new ...
✓ Compiled /new in 4.9s
⨯ ./devv/log-prov.tsx:95:6
Parsing ecmascript source code failed
93 |
94 | return (
> 95 | <div
| ^^^
96 | className="fixed bottom-0 right-0 w-full sm:w-96 md:w-120 bg-gray-900 text-white rounded-t-lg shadow-xl overflow-hidden flex flex-col z-50 border border-gray-700"
97 | style={{ maxHeight: `calc(100vh - 50px)`, height: height }}
98 | >
Unexpected token `div`. Expected jsx identifier
./app/layout.tsx:8:1
Export default doesn't exist in target module
6 | import { ClerkProvider } from "@clerk/nextjs";
7 | import { ThemeProvider } from "next-themes"; // <-- Add this
> 8 | import Logger from "../devv/log-prov";
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9 | const fontDefault = localFont({
10 | variable: "--font-default",
11 | src: "../fonts/ClashDisplay.woff2",
The export default was not found in module [project]/devv/log-prov.tsx [app-rsc] (ecmascript).
The module has no exports at all.
All exports of the module are statically known (It doesn't have dynamic exports). So it's known statically that the requested export doesn't exist.
○ Compiling /_error ...
✓ Compiled /_error in 2.1s
GET /new 500 in 7915ms