Skip to content

Error TS2305: Module '"react-element-to-jsx-string"' has no exported member 'Options' #514

Closed
@leonelgalan

Description

@leonelgalan

storybookjs/addon-jsx fails when updating from 14.1.0 to 14.3.0 with the error above, because the following line:

import reactElementToJSXString, { Options } from 'react-element-to-jsx-string';

I'm not familiar with publishing types, but I believe the error is because related to index.d.ts not exporting ReactElementToJSXStringOptions, perhaps as Options?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions