You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is for some reason using default.Column but default is a JS reserved word, so this results in a syntax error Uncaught SyntaxError: expected expression, got keyword 'default'
I can fix this by changing my TS to:
import React from 'react';
export class Column extends React.Component {}
function Test() {
return <span>hi</span>;
}
Test.Column = Column;
export default Test;
It seems like the order of the export matters in relation to the Test.Column = Column assignment 😕
Given the file
test.tsx
I get invalid generated code:
It is for some reason using
default.Column
butdefault
is a JS reserved word, so this results in a syntax errorUncaught SyntaxError: expected expression, got keyword 'default'
I can fix this by changing my TS to:
It seems like the order of the
export
matters in relation to theTest.Column = Column
assignment 😕Versions:
└─ @storybook/[email protected]
└─ @storybook/[email protected]
└─ [email protected]
The text was updated successfully, but these errors were encountered: