[codemod] Jss to styled does not support keyframes
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
when i run npx @mui/codemod v5.0.0/jss-to-style gived by your team tool to update jss to styled, something errro with the keyframe。
here is my code
https://codesandbox.io/s/mui-v5-styled-w-css-keyframes-forked-xecl1?file=/index.js:0-1057
Expected behavior 🤔
convert jss to emotion
Steps to reproduce 🕹
Steps:
run npx @mui/codemod v5.0.0/jss-to-styled pages/index.jsc
Context 🔦
No response
Your environment 🌎
"@mui/material": "^5.3.0",
"@mui/styles": "^5.3.0",
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the @mui/codemod v5.0.0/jss-to-styled command and the linked CodeSandbox index.js example. Reproduce the conversion with the provided pages/index.jsc input and inspect how the keyframes are handled. Done means the codemod converts the keyframes to the expected Emotion/styled form without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100