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

vue-prism-component does not provide an export named 'default' #40

Open
mesqueeb opened this issue Jul 19, 2021 · 2 comments · May be fixed by #42
Open

vue-prism-component does not provide an export named 'default' #40

mesqueeb opened this issue Jul 19, 2021 · 2 comments · May be fixed by #42

Comments

@mesqueeb
Copy link

Is it possible to prepare an ESM version so I can use this in Vite? I'm not sure why I'm seeing issues like this...

SyntaxError: The requested module '/@fs/Users/lucaban/ghq/github.com/CyCraft/blitzar/node_modules/vue-prism-component/dist/vue-prism-component.common.js?v=d01fabea' does not provide an export named 'default'

@mesqueeb mesqueeb changed the title vue-prism-component.js does not provide an export named 'default' vue-prism-component does not provide an export named 'default' Jul 19, 2021
@mesqueeb
Copy link
Author

I have found many issues with usage in Vite. I was able to solve them by bundling Prism into the dist esm built file. I will make a PR.

@mesqueeb
Copy link
Author


@egoist please review this small PR with great value for me :O

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

Successfully merging a pull request may close this issue.

1 participant