Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production build does not work #3

Open
Schiavi opened this issue Jun 1, 2019 · 1 comment
Open

Production build does not work #3

Schiavi opened this issue Jun 1, 2019 · 1 comment

Comments

@Schiavi
Copy link

Schiavi commented Jun 1, 2019

Hello,

I'm having problems generating a Production version. I've copied the CRACO configs from this repo. Any ideas on what's happening?

Dev(yarn start) works normally. But when I try to generate a production build:

Captura de Tela 2019-06-01 às 17 16 07

Here's the code in the error:

import { css } from 'linaria'

import { rem } from '../../utils/css'

export const cxMain = css`
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: calc(100vh - ${rem(80)});
`
@drownbes
Copy link
Owner

Sorry for long answer.
@Schiavi is it working if you try to do the same inside this repo? Which version of react scripts are you using? Do you have any other craco transformations inside your project.
I've tried to do the kind of the same in this repo and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants