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
{{ message }}
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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
buttons.css looks like this
Variables is a sass file (
_variables.sass
)Inside button component we do
The text was updated successfully, but these errors were encountered: