epub.js icon indicating copy to clipboard operation
epub.js copied to clipboard

Types broken: "Module '"./layout"' has no exported member 'NavItem'."

Open InputNeuron opened this issue 6 years ago • 0 comments

I get the compilation error:

"error TS2614: Module '"./layout"' has no exported member 'NavItem'. Did you mean to use 'import NavItem from "./layout"' instead?"

... this has a simple fix:

Just change:

export { default as Layout, NavItem } from './layout';

to

export { default as Layout } from './layout';
export { NavItem } from './navigation';

Then it works fine. If you could just patch directly rather than me sending a PR I'd appreciate it but I can still send a PR.. just super busy with a release :)

InputNeuron avatar Jun 06 '20 13:06 InputNeuron