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
Hello I have a react components module that uses styled-jsx and styled-jsx-plugin-sass; now I'm importing components from that module into my next project using next-plugin-transpile-modules, but I'm getting this error when a component uses styles that have imports in them.
Module build failed: Error: .../node_modules/test-react-styled-jsx-components/components/styles/buttons.css: File to import not found or unreadable: variables
import PropTypes from 'prop-types';
import styles from './styles/buttons.css';
const Button = ({children, ...rest }) => (
<button className="rdc-btn" {...rest}>
<style jsx>{styles}</style>
{children}
</button>
);
export default Button;```
This component works fine when imported in the same project, but throwing the error when used in another module that is using this module.
Hello I have a react components module that uses styled-jsx and styled-jsx-plugin-sass; now I'm importing components from that module into my next project using next-plugin-transpile-modules, but I'm getting this error when a component uses styles that have imports in them.
Module build failed: Error: .../node_modules/test-react-styled-jsx-components/components/styles/buttons.css: File to import not found or unreadable: variablesbuttons.css looks like this
Variables is a sass file (
_variables.sass)Inside button component we do