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

yarn start gives error about styled-components with babel-plugin-macros. #216

Open
ndasim opened this issue Dec 25, 2022 · 1 comment
Open

Comments

@ndasim
Copy link

ndasim commented Dec 25, 2022

Description

I started to try your project on my Mac OS, I followed your guidelines but couldn't start project due to following error. I tried npx instead of yarn but it has another issue with redux dependency. I'm putting error there:

yarn start returns following error:

Users/***/my-app/src/app/components/LoadingIndicator/index.tsx: styled-components tried to access babel-plugin-macros, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: babel-plugin-macros
Required by: styled-components@virtual:ddccc941eb8b35cd4b898a64351d8bba4ecc85eb47e8f1b36dce7852d6c3635665e0fc5464861f723d175edb2248ce0fa54dfefb9b5e4d2fdaef4b2353c4aa82#npm:5.3.5 (via /Users/***/my-app/.yarn/unplugged/styled-components-virtual-4f6dda2093/node_modules/styled-components/dist/)

Steps to reproduce

Steps to reproduce the behavior:

  • Install latest node js & yarn
  • Run following command: yarn create react-app --template cra-template-rb my-app
  • cd my-app/; yarn start

Versions

  • react-boilerplate-cra-template: 1.2.6
  • Node/NPM: v19.3.0
  • Browser: ?
@o2nitin
Copy link

o2nitin commented Feb 15, 2023

run below command to add babel-plugin-macros, then it will work
yarn add babel-plugin-macros

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