Skip to content

Conversation

@stefan-fast
Copy link
Contributor

When building my React Vite project, I got this:

 npm run build

> [email protected] build
> tsc && vite build

vite v6.3.5 building for production...
transforming (206) node_modules/echarts/lib/processor/dataSample.jsnode_modules/echarts-for-react/src/types.ts:1:10 - error TS1484: 'CSSProperties' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

1 import { CSSProperties } from 'react';
           ~~~~~~~~~~~~~


Found 1 error in node_modules/echarts-for-react/src/types.ts:1

As suggested by the error message, I changed the import statement to a type-only import, which fixed the issue.

@hustcc hustcc merged commit 74434b8 into hustcc:master May 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants