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

🐛 Bug - type error in nextjs 14.2.4 #109

Open
DarknessMonarch opened this issue Aug 19, 2024 · 1 comment
Open

🐛 Bug - type error in nextjs 14.2.4 #109

DarknessMonarch opened this issue Aug 19, 2024 · 1 comment
Labels
bug Something isn't working stale

Comments

@DarknessMonarch
Copy link
Contributor

DarknessMonarch commented Aug 19, 2024

@google-translate-select bug report

Summary

this is the type error am getting when i run it on nextjs

Screenshot 2024-08-19 042512

TypeError: (0 , index3_mjs__WEBPACK_IMPORTED_MODULE_3_.jsx) is not a function

Environment

Next.js 14.2.4

I tested using both chrome and brave but it safe to assume that the problem is simply next.js

Steps to reproduce

  1. install on nextjs
npm install npm install @google-translate-select/react
  1. import and use it
"use client"


import GoogleTranslateSelect from "@google-translate-select/react";
 
export default test = () => {
return (
  <div>
          <GoogleTranslateSelect
            defaultLanguageCode="en"
            defaultPageLanguageCode="en"
            fetchBrowserLanguage={false}
            trigger="click"
            select={handleGoogleTranslateSelect}
          />
        </div>
);
}
  1. Run it
npm run dev

Expected results

to work like how it works on the projects i have used on vue

Actual results

Screenshot 2024-08-19 042512

@DarknessMonarch DarknessMonarch added the bug Something isn't working label Aug 19, 2024
@i7eo
Copy link
Owner

i7eo commented Sep 18, 2024

Marking issue as stale since there was no activity for 30 days

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

No branches or pull requests

2 participants