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 }}
Repository navigation
How to make prerender to ignore imported CSS. #1101
In a freshly created Rails 6.1.1 app, have a component that imports SCSS:
// app/javascript/components/MyHomePage/index.jsximportReactfrom'react'importPropTypesfrom'prop-types'import'index.css'// Works when commenting out this lineconstMyHomePage=({ tagline })=><>Tagline: {tagline}</>MyHomePage.propTypes={tagline: PropTypes.string.isRequired,}exportdefaultMyHomePage
React::ServerRendering::PrerenderError at /deals/a/files
Encountered error "#<ExecJS::ProgramError: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.>"
Activity