You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As long as I delete the background-image, everything is fine.
I tried many ways, but I couldn't solve it. Unless I add this style to global.css, it is not elegant.
I also tried to import CSS files through, but this error occurred:
ERROR: Cannot import "../xxx/style.css" into a JavaScript file without an output path configured
I tried to add this <style jsx> to other pages (such as the Index.js or other pages unrelated to MDX), and everything was fine. This looks like a problem when rendering MDX.
The text was updated successfully, but these errors were encountered:
mdx-bundler
version: 9.0.1node
version: 18.12.0npm
version:8.19.2I added a component in mdx, which needs to be embedded with CSS. When I add
background-image: ...;
in <style jsx>, i got error:Code:
As long as I delete the
background-image
, everything is fine.I tried many ways, but I couldn't solve it. Unless I add this style to global.css, it is not elegant.
I also tried to import CSS files through, but this error occurred:
I tried to add this <style jsx> to other pages (such as the Index.js or other pages unrelated to MDX), and everything was fine. This looks like a problem when rendering MDX.
The text was updated successfully, but these errors were encountered: