Open
Description
@google-translate-select bug report
Summary
this is the type error am getting when i run it on nextjs
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
- install on nextjs
npm install npm install @google-translate-select/react
- 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>
);
}
- Run it
npm run dev
Expected results
to work like how it works on the projects i have used on vue