Closed GuptaSiddhant closed 4 years ago
Hi @GuptaSiddhant,
It looks very strange. I could not reproduce the issue, even using the component you shared.
Do you have a babel configuration file on your project root directory (or anywhere else) ? If so, could you share it? I think it is picked up by react-docgen and that is what brings up the issue.
module.exports = {
presets: [
[
'@babel/env',
{
modules: false,
useBuiltIns: 'usage',
corejs: '2',
},
],
'@babel/react',
],
};
Solved the problem with version update. Thanks.
Great to hear that! 🎉
I'm getting the error "Unexpected reserved word 'interface'".
I'm using
Error
.zeplin/components.json
Button/index.tsx