question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module '@emotion/styled-base'

See original GitHub issue

Describe the bug Installing latest dependencies causes build/lint errors.

Cannot find module '@emotion/styled-base' from 'node_modules/@commercetools-uikit/accessible-button/dist/accessible-button.cjs.js'
image

To Reproduce https://github.com/commercetools/merchant-center-application-kit/pull/1673/checks?check_run_id=983630152

Expected behavior The @emotion/styled-base is not a peer dependency and shouldn’t be required to be installed by consumers.

Screenshots image

Additional context Maybe something related to this? https://github.com/commercetools/ui-kit/blob/2db4063679813da5929b92e64a75582a8bc5e0bf/rollup.config.js#L38-L40

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
emmenkocommented, Sep 17, 2020

This issue with emotion was fixed in version 10.30.1 (https://github.com/commercetools/ui-kit/pull/1483). Please make sure that all your packages are on the latest version.

0reactions
emmenkocommented, Sep 17, 2020

Nice, glad we got this solved! 🙌

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Can't resolve '@emotion/react'
I had a similar issue and I resolved it by calling: npm install @emotion/react. or yarn add @emotion/react.
Read more >
Module not found: Can't resolve @emotion/react | bobbyhadz
To solve the error "Module not found: Error: Can't resolve '@emotion/react'", make sure to install the @emotion/react package by opening your terminal in ......
Read more >
@emotion/styled - npm
Start using @emotion/styled in your project by running `npm i @emotion/styled`. There are 6753 other projects in the npm registry using ...
Read more >
can't resolve emotion/ react and styled error solved in material ...
Module not found : Can't resolve '@ emotion /react' and '@ emotion / styled ' solved.
Read more >
Storybook throw error if used emotion 11 #13277 - GitHub
Describe the bug Problem with emotion 11 : Module not found: Error: Can't resolve '@emotion/styled/base' To Reproduce yarn storybook Code ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found