Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when i run command with npm run build, it tell me react not support css property #21851

Closed
mengzhigang opened this issue Oct 18, 2022 · 3 comments
Labels
#bug Bug report

Comments

@mengzhigang
Copy link

mengzhigang commented Oct 18, 2022

/Users/mengzhigang/Desktop/python_workspace/Superset/superset-frontend/src/views/components/RightMenu.tsx
396:24 error Unknown property 'css' found react/no-unknown-property
401:24 error Unknown property 'css' found react/no-unknown-property
406:24 error Unknown property 'css' found react/no-unknown-property
411:24 error Unknown property 'css' found react/no-unknown-property
471:3 error State initialization should be in a constructor react/state-in-constructor

/Users/mengzhigang/Desktop/python_workspace/Superset/superset-frontend/src/visualizations/TimeTable/TimeTable.jsx
245:11 error Unknown property 'css' found react/no-unknown-property

✖ 383 problems (163 errors, 220 warnings)

just like this.

报错的都是div,span这种基础标签

@sbasher314
Copy link

sbasher314 commented Oct 19, 2023

I am also encountering this issue, have not found any workaround or solutions.

@rusackas
Copy link
Member

I'm not sure why there are so many snyk links here, but this no longer seems to be the case in current-era Superset. Let us know if this needs revisiting for some reason.

@CollinEMac
Copy link

I'm not sure why there are so many snyk links here, but this no longer seems to be the case in current-era Superset. Let us know if this needs revisiting for some reason.

I've recently upgraded to Superset v3.1.2 and I'm now encountering the same issue. Example:

#31 201.2 ERROR in src/pages/SqlLab/index.tsx:67:9
#31 201.2 react/no-unknown-property: Unknown property 'css' found
#31 201.2     65 |     <LocationProvider>
#31 201.2     66 |       <div
#31 201.2   > 67 |         css={css`
#31 201.2        |         ^^^^^^^^^
#31 201.2   > 68 |           flex: 1 1 auto;
#31 201.2        | ^^^^^^^^^^^^^^^^^^^^^^^^^
#31 201.2   > 69 |           position: relative;
#31 201.2        | ^^^^^^^^^^^^^^^^^^^^^^^^^
#31 201.2   > 70 |           display: flex;
#31 201.2        | ^^^^^^^^^^^^^^^^^^^^^^^^^
#31 201.2   > 71 |           flex-direction: column;
#31 201.2        | ^^^^^^^^^^^^^^^^^^^^^^^^^
#31 201.2   > 72 |         `}
#31 201.2        | ^^^^^^^^^^^
#31 201.2     73 |       >
#31 201.2     74 |         <SqlLabGlobalStyles />
#31 201.2     75 |         <App />

I've managed to get around it by doing something like this but it doesn't feel like I should have to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report
Projects
None yet
Development

No branches or pull requests

4 participants