-
Notifications
You must be signed in to change notification settings - Fork 21
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
Cannot use as JSX component (Reopen #47) #59
Comments
Same thing happening to me. I'm using "react": "18.2.0", |
Hello ! Did you try this in your next config file ? const nextConfig = {
transpilePackages: ['mui-one-time-password-input'],
} |
@viclafouch you're quick to close this issue but the Smilar to @hannahlaek-wt this issue is affecting all other JSX elements
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
poweredByHeader: false,
typescript: { ignoreBuildErrors: true },
transpilePackages: ["mui-one-time-password-input"],
};
module.exports = nextConfig;
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [{ "name": "next" }],
"paths": { "@/*": ["./*"] }
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"test-helpers/jsdom-extended.js"
],
"exclude": ["node_modules"]
}
|
@viclafouch kindly keep it open a bit longer |
I need a repro guys.. How can I debug without a codesandbox ? 😭 |
This is a reopen of #47 since it was closed with no solution
Below is issue description from christopher-becker (the original author of #47 )
viclafouch please keep this open for now in case any other person shares the same concern
The text was updated successfully, but these errors were encountered: