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

There was an error trying to load the config "styledComponents" for the macro imported from "styled-components/macro. Please see the error thrown for more information. #7524

Closed
Hurtak opened this issue Aug 13, 2019 · 3 comments

Comments

@Hurtak
Copy link
Contributor

Hurtak commented Aug 13, 2019

Describe the bug

When using styled-components/macro inside create-react-app latest 3.1.0 it shows following warnings during start and build commands. Did not happen in 3.0.1. Nothing else changed.

There was an error trying to load the config "styledComponents" for the macro imported from "styled-components/macro. Please see the error thrown for more information.
Probably related #2630

Not sure if this is the right place to report it, some related bugs:
styled-components/styled-components#2630
styled-components/styled-components#2713

Did you try recovering your dependencies?

yes

Environment

Environment Info:

  System:
    OS: macOS 10.14.5
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
  Binaries:
    Node: 10.16.0 - /usr/local/bin/node
    Yarn: 1.17.3 - /usr/local/bin/yarn
    npm: 6.9.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 76.0.3809.100
    Firefox: 66.0.5
    Safari: 12.1.1
  npmPackages:
    react: 16.9.0 => 16.9.0 
    react-dom: 16.9.0 => 16.9.0 
    react-scripts: 3.0.1 => 3.0.1 
  npmGlobalPackages:
    create-react-app: 3.0.1
@MattKunze
Copy link

MattKunze commented Aug 13, 2019

I was seeing the same thing with "react-intl.macro". Adding a "babelMacros" section to package.json seems to get rid of the warning: styled-components/styled-components#2630 (comment)

@cburkins
Copy link

Seeing same issue

@ianschmitz
Copy link
Contributor

Should have been fixed in #8024.

@lock lock bot locked and limited conversation to collaborators Nov 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants