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 3 / Vite - issues #4

Open
mrkaluzny opened this issue May 31, 2021 · 7 comments
Open

Vue 3 / Vite - issues #4

mrkaluzny opened this issue May 31, 2021 · 7 comments

Comments

@mrkaluzny
Copy link

Hey!

There are some issues with running the package using vue 3 with vite. It works when built but not when development server is running, any solutions?

@jeanfrancoisgb
Copy link

Same problem here, simply after import in main.ts and app.use(Notifications), this error shows:

"Cannot use import statement outside a module"

@emmanuelsw
Copy link

I solved the Vite compatibility issue here: https://github.com/emmanuelsw/notiwind
I also added support for the composition API and Tailwind's JIT.

@mrkaluzny
Copy link
Author

@emmanuelsw Thanks! I'll check it out on Monday :)

@mrkaluzny
Copy link
Author

@emmanuelsw My man you deserve an award! Works notiwind works perfectly, thanks for saving me hours of debugging! :)

@emmanuelsw
Copy link

No problem! Glad that it saved you some time!

@coolsam726
Copy link

@killmenot any chance you might know what the issue is? Switching libraries might be a bit cumbersome for some. @emmanuelsw a PR would be highly appreciated. Thanks

@killmenot
Copy link
Owner

@coolsam726 @emmanuelsw did a great job but unfortunately I have no time to apply their changes to this repo. If someone open a PR, I will be able to check it and merge

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

5 participants