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

global is not defined error in Mozilla Firefox #5

Open
Vectoras opened this issue Mar 5, 2023 · 1 comment
Open

global is not defined error in Mozilla Firefox #5

Vectoras opened this issue Mar 5, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Vectoras
Copy link

Vectoras commented Mar 5, 2023

Describe the bug

Trying to use the compoenent as described in the documentation here, I get an error in Mozilla Firefox, Ubuntu

To Reproduce

  1. install using npm npm install vue-testimonials --save
  2. import in main.ts
    image
  3. use the component with the data copy-pasted from the documentation
    image
    image
  4. Run as dev using Vite
  5. Mozilla Firefox will throw and error global is not defined error

Screenshots
image

Environment:

  • OS: Ubuntu 22.04.2
  • Browser: Mozilla Firefox 110.0.1 (64-bit)
  • Build environment: NodeJs v18.14.0, Vitejs
@Vectoras
Copy link
Author

Vectoras commented Mar 6, 2023

Seems to be a problem that happens on Vite with some older (maybe) libraries: https://stackoverflow.com/questions/72114775/vite-global-is-not-defined

I have solved it like this: bevacqua/dragula#602 (comment)

@guastallaigor guastallaigor added the bug Something isn't working label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants