-
Notifications
You must be signed in to change notification settings - Fork 30
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
Compile issue with latest nextjs version (swc, not babel) #131
Comments
hi, excuse me, have you solved it ? |
Not yet, I need to use this template from antd. |
You need to import it from the lib folder instead.
|
Many thanks, it's worked perfectly. |
@ielireb Your solution works partially. I want to add ChildrenPlugin to tween-one which I do generally as |
try |
@jljsj33 Importing ChildrenPlugin is fine. But to use ChildrenPlugin I need to do |
import { Plugins } from 'tween-one';// or import Plugins from 'tween-one/lib/plugins'; => 3.x
// import Plugins from 'rc-tween-one/lib/plugins'; ===> 2.x
import ChildrenPlugin from 'rc-tween-one/lib/plugin/ChildrenPlugin';
Plugins.push(ChildrenPlugin); 3.x should be fixed |
import TweenOneGroup from "rc-tween-one/lib/TweenOne"; Import it like this. This worked for me. I am using it in one of the Antd Component and I am facing the same issue. |
Hi,
I use rc-tween-one with latest version of nextjs ("next": "12.0.7",) and get the compile error:
FYI, next@12 use swc instead of babel
Reproduction steps
pages/_app.tsx
Expected behavior
Can compile and run it
Thanks
The text was updated successfully, but these errors were encountered: