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
Main config in typescript throwing error with export default #11291
Comments
@fernandopasik I believe this can be configured in your |
I'm using |
I was looking also to the examples in the repo, all of the |
main.ts is handled by node. So it requires module generation that’s compatible with the version of node you’re using. If your Node is handling ESNext modules then your setting will work. Maybe there’s some kind of transformation we can do when we load the file so we can get away with more modern module formats. Cc @igor-dv |
Yes, sorry, I didn't specify, I'm using node 14.2.0 and type: "module" in package.json |
Actually I was using I see a few constrains in the package requirements adding old versions of babel, but I haven't pinpointed the one that's causing the problem |
That's pretty strange that addon-docs would change that. Does the default export work if you remove addon-docs temporarily? |
Yes, it does. I know it's strange. |
Narrowing down it a bit the adding of |
Digging deeper into the rabbit hole |
Not sure if possible to try out https://github.com/vue-styleguidist/vue-styleguidist/tree/dev/packages/vue-simple-docgen-loader looks more official than vue-docgen-loader |
Related: #8936 |
I know it's related to that issue, but looks like that ticket will take further to be done. Would it be ok as a solution for this to replace the loader with the official one? |
@fernandopasik that would be great. feel free to take that! |
thanks to #11759 there's no need for this one anymore |
Describe the bug
main.ts with typescript export default breaks
To Reproduce
Expected behavior
No error produced and server starts
Screenshots
The text was updated successfully, but these errors were encountered: