Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing module from ejs to mjs broken storybook builds with v1.2.0 #21

Open
Dharmendra205111014 opened this issue Jul 16, 2021 · 0 comments

Comments

@Dharmendra205111014
Copy link

When building Vue storybook, with recent changes started getting below error as vue-to-react is dependency in @storybook/addon-docs

 ERROR  Failed to compile with 2 errors                                                                                                                                                                                            11:37:40 AM

 error  in ./node_modules/@egoist/vue-to-react/dist/index.mjs

Can't import the named export 'createApp' from non EcmaScript module (only default export is available)

 error  in ./node_modules/@egoist/vue-to-react/dist/index.mjs

Can't import the named export 'h' from non EcmaScript module (only default export is available)

Suggested change
import * as Vue from 'vue'
to
import Vue from 'vue'
at https://github.com/egoist/vue-to-react/blob/master/src/index.ts#L2

@egoist Let me know if this is fine, i can raise PR for same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant