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

Uncaught ReferenceError: exports is not defined #39

Open
SalahAdDin opened this issue Feb 14, 2022 · 4 comments
Open

Uncaught ReferenceError: exports is not defined #39

SalahAdDin opened this issue Feb 14, 2022 · 4 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@SalahAdDin
Copy link

Describe the bug
I'm trying to run this package on my project which does use ViteJS as tooling, but I'm getting this issue on execution time:

Uncaught ReferenceError: exports is not defined
    js index.tsx:215
    __init chunk-BQAOEP2F.js:9
    <anonymous> reactjs-social-login:1
[index.tsx:215:20](http://localhost:3000/node_modules/reactjs-social-login/src/LoginSocialTwitter/index.tsx)
    js index.tsx:215
    __init chunk-BQAOEP2F.js:9
    <anonymous> reactjs-social-login:1
    InnerModuleEvaluation self-hosted:2388
    InnerModuleEvaluation self-hosted:2388
    InnerModuleEvaluation self-hosted:2388
    InnerModuleEvaluation self-hosted:2388
    InnerModuleEvaluation self-hosted:2388
    evaluation self-hosted:2349

Of course, it does not render anything on the screen, and it is the only package that is not working.

To Reproduce
Steps to reproduce the behavior:

  1. Install the package on a ViteJS project.
  2. Import components from the package on a component.
  3. Try to run the project.
  4. See the error on the browser's console.

Expected behavior
It should render the front end as we designed it.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOs Monterrey, 12.0.1 (21A559)
  • Browser: Firefox Browser 97.0 (64-bit)
  • Version: ^2.0.0

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@cuongdevjs
Copy link
Owner

Sorry, I have no experience with ViteJS. So I gonna research and find a solution to fix this. Thank you

@cuongdevjs cuongdevjs added the help wanted Extra attention is needed label Feb 16, 2022
@cuongdevjs cuongdevjs self-assigned this Feb 16, 2022
@SalahAdDin
Copy link
Author

@cuongdevjs thanks to you!

@cuongdevjs cuongdevjs pinned this issue Jul 10, 2023
@djhemath
Copy link

@SalahAdDin, is this issue still persists?

I tried with the same setup and it works for me. Can you share a link for a repo or something which reproduces it?

@SalahAdDin
Copy link
Author

@djhemath I don't know, I'm not working with this right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants