Skip to content

fix: TypeScript CSS import declarations missing from most examples #254

@panz3r

Description

@panz3r

Context

Discovered during development of the showcase example (PR #252).

Problem

TypeScript (especially with newer versions) requires a declare module '*.css' declaration to handle bare CSS imports without type errors. Currently only the refresh-token example has a vite-env.d.ts file with this declaration. Other examples that import CSS files are missing this, which causes TypeScript errors.

Impact

Building or type-checking examples other than refresh-token can fail or produce TypeScript errors related to CSS module imports.

Proposed Action

Add a vite-env.d.ts (or equivalent ambient declaration) to each example that imports CSS files, or add a shared ambient declaration that all examples can reference.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions