TypeError: _app_site_components_home_megaMenu_styled__WEBPACK_IMPORTED_MODULE_8__.styles.bar is not a function #305
Replies: 5 comments 4 replies
-
hey, it would be helpful if you provided more information about your configuration and environment. |
Beta Was this translation helpful? Give feedback.
-
The first problem I immediately see is: This is not allowed. Also, looking carefully at the err, I see `styles.bar` is not a function
|
Beta Was this translation helpful? Give feedback.
-
i remove ...theme.row, but i have this is my next.config.js
/** @type {import('next').NextConfig} */
const stylexPlugin = require("@stylexjs/nextjs-plugin");
const withMDX = require("@next/mdx")();
const nextConfig = {
// Configure `pageExtensions` to include MDX files
pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"],
// Optionally, add any other Next.js config below
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack'],
});
return config;
},
};
module.exports = stylexPlugin({
rootDir: __dirname,
})(withMDX(nextConfig)); |
Beta Was this translation helpful? Give feedback.
-
Do you also have the What are the locations of the two files? |
Beta Was this translation helpful? Give feedback.
-
yes i have it |
Beta Was this translation helpful? Give feedback.
-
i have problem in stylex, when i use stylex.props for call function, get this error: TypeError: app_site_components_home_megaMenu_styled__WEBPACK_IMPORTED_MODULE_8_.styles.bar is not a function
Beta Was this translation helpful? Give feedback.
All reactions