Rocky_Mountain_Vending/.pnpm-store/v10/files/a0/b4cd00cb0bf5e1d7d3dbe993c9783c3de800fee649b7f72a8dc8739a2a567c814bb5a87a27dce360ffa0d6e12957d8061e7e112dd8816978e54bdc24f70123
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

28 lines
No EOL
1.1 KiB
Text

// This module provides intellisense for all components that has the `"use client"` directive.
import { NEXT_TS_ERRORS } from '../constant';
import { getTs } from '../utils';
const errorEntry = {
getSemanticDiagnostics (source, isClientEntry) {
const isErrorFile = /[\\/]error\.tsx?$/.test(source.fileName);
const isGlobalErrorFile = /[\\/]global-error\.tsx?$/.test(source.fileName);
if (!isErrorFile && !isGlobalErrorFile) return [];
const ts = getTs();
if (!isClientEntry) {
// Error components must be Client Components
return [
{
file: source,
category: ts.DiagnosticCategory.Error,
code: NEXT_TS_ERRORS.INVALID_ERROR_COMPONENT,
messageText: `Error Components must be Client Components, please add the "use client" directive: https://nextjs.org/docs/app/api-reference/file-conventions/error`,
start: 0,
length: source.text.length
}
];
}
return [];
}
};
export default errorEntry;
//# sourceMappingURL=error.js.map