Great plugin! Found an issue- when trying to use the 'Extract component to file' function, if the selected component has a property using an object property accessed via a quoted string literal, it fails with
Property name expected type of string but got null
Eg.
This works:
import { Card } from 'antd';
import React from 'react';
export default () => {
const foo = {
bar: 'foo',
};
return (
<Card title={foo.bar}>
<h1>foo</h1>
</Card>
);
};
But this fails:
import { Card } from 'antd';
import React from 'react';
export default () => {
const foo = {
bar: 'foo',
};
return (
<Card title={foo['bar']}>
<h1>foo</h1>
</Card>
);
};
Great plugin! Found an issue- when trying to use the 'Extract component to file' function, if the selected component has a property using an object property accessed via a quoted string literal, it fails with
Property name expected type of string but got null
Eg. This works:
But this fails: