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

Remove macro from sc import preset #279

Merged
merged 1 commit into from
Jan 6, 2021
Merged

Conversation

ben-rogerson
Copy link
Owner

This patch adjusts the css import to remove the macro.

This is due to an error that started being thrown in CRA when using preset: "styled-components":

Attempted import error: 'css' is not exported from 'styled-components/macro' (imported as '_css').

Old:

import { css } from 'styled-components/macro'

New:

import { css } from 'styled-components'

Reference #264

@ben-rogerson ben-rogerson merged commit f63a0fe into master Jan 6, 2021
@ben-rogerson ben-rogerson deleted the patch/sc-css-import-fix branch January 6, 2021 10:49
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

Successfully merging this pull request may close these issues.

1 participant