-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Missing class properties transform. #337
Comments
@MrLibya I haven't used The support for
|
@MrLibya What version of nodejs are you running? |
Hey folks, I'm seeing this as well in a standard create-react-app (v4) project using Typescript. Here's the full setup. It's a little bit of a problem for me because I'm using CRA out of the box and don't have a webpack or babel config file in the project, so I can't make adjustments there. Node: 16.3 Package.json:
tsconfig:
Will post if I figure out what's going on! |
@bengotow Thank you for offering to help! Can you also dig into this line of thinking for (I think this is the right syntax... 🙏 ) overrides: [
{
test: ["./node_modules/react-medium-image-zoom"],
plugins: ["@babel/plugin-proposal-class-properties"],
},
], It's not a great solution, but it'd be interesting to know if that unblocks y'all. |
Hello, sorry for late replay @rpearce I'm using but I've already fixed that issue, So I've fixed that issue by using customize-cra, it seems that the issue sadly I can't share any code because we didn't use that solution ( because we had to update a lot of packages ), but I remember it worked. i'm not sure what causing the issue because i'm not web developer. |
Hey folks! I think that babel.config.json override would work, but we actually don't have a babel config because it's all provided by the stock create-react-app. I found a thread from earlier this year where folks were trying to get the Monaco text editor (also an ESM module) to work in stock create-react-app projects (microsoft/monaco-editor#82), and it seemed like they were also unable to do it without ejecting or using the In the meantime I was able to workaround this issue by downgrading to |
That's definitely not the experience I want people to have. I'll make it right. |
I'm thinking this has to do with node versions. While there's an issue with the default SVG image (a size thing throwing measurements off with npx create-react-app cra-test --template typescript
cd cra-test
npm i react-medium-image-zoom Then in import Zoom from 'react-medium-image-zoom';
import 'react-medium-image-zoom/dist/styles.css'; then <Zoom>
<img src={logo} className="App-logo" alt="logo" />
</Zoom> and then npm run build |
ERROR in ../node_modules/react-medium-image-zoom/dist/index.js 331:24
| a11yNameButtonUnzoom: 'Minimize image', webpack compiled with 1 error |
@Rubon72 What nodejs version are you running? |
Can the people having issues please provide the following?
Using I could just move Any reproduction or debugging help would be appreciated! |
I'm using node -v 16.13 and experiencing the same 'Missing class properties transform" error. |
Alright, since I can't reproduce this, I'm going to try something to fix it and see if y'all can test it for me. |
@bengotow @Rubon72 @wanderingme Can y'all try I switched from |
Using I'm going to publish Thanks to everybody who has participated! I'll add you to the "All Contributors" list in the README. |
Hello,
I've react project and I'm using react-app-rewired, However when I installed this package I get the following error:
I've
@babel/plugin-proposal-class-properties
installed, here's my babel.config.jsonThe text was updated successfully, but these errors were encountered: