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.

Getting started flow is very buggy

See original GitHub issue

Bug Report

Describe the bug

The “Getting Started” process is super clunky and buggy.

The main issues is that you have to install a lot of dependencies by yourself (docz-theme-default and @emotion/core, for example), just to get it to run.

This is not a pure case of peerDependencies.

If docz requires these packages in order to run the very most basic setup, they should be installed as dependencies.

And just when you think you’re done, another issue pops up and you have to scour the web/issues page for solutions, which often seem hacky (https://github.com/pedronauck/docz/issues/522 for example).

Besides that, the documentation doesn’t specify any of this, and it’s impossible to follow it step by step without running into these issues.

To Reproduce

  1. Install the latest version of docz (0.13.7 for example).
  2. Run docz dev through an npm script.
  3. See error.

This is just the latest error where I gave up:

./node_modules/@emotion/styled-base/dist/styled-base.browser.esm.js
Attempted import error: 'withCSSContext' is not exported from '@emotion/core'.

This is the before installing @emotion/core myself:

./node_modules/docz-theme-default/dist/index.m.js
Attempted import error: 'ClassNames' is not exported from '@emotion/core'.

./node_modules/emotion-theming/dist/emotion-theming.browser.esm.js
Attempted import error: 'ThemeContext' is not exported from '@emotion/core'.

./node_modules/emotion-theming/dist/emotion-theming.browser.esm.js
Attempted import error: 'ThemeContext' is not exported from '@emotion/core'.

./node_modules/emotion-theming/dist/emotion-theming.browser.esm.js
Attempted import error: 'ThemeContext' is not exported from '@emotion/core'.

Expected behavior

Pretty straightforward:

  • Up-to-date documentation.
  • A package should install its dependencies.

Environment

  • OS: MacOS
  • Node/npm version: Node 8.9.0, npm 6.5.0.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
danilosilvadevcommented, Jan 28, 2019

I’m getting this problem today. I did try everything, included create a new project, but always is getting this warning and the project is not loading.

./node_modules/@emotion/styled-base/dist/styled-base.browser.esm.js
Attempted import error: 'withCSSContext' is not exported from '@emotion/core'.

I’m using CRA but not using storybook. So i don’t see what is the problem.

2reactions
sw-yxcommented, Jan 28, 2019

docs are 2 months out of date. i’ve filed PR’s and just offered to help with maintaining. lets see if pedro accepts.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Buggy | Enfocus
The apps help with injecting test jobs into the flow (with all metadata properly setup), helps with cleaning up result files so you...
Read more >
Screen Flow 9 Is Really Buggy. Fix? Downgrade? Refund?
I have been having the hardest time with Screen Flow 9. ... If I can't fix it, is there any way for me...
Read more >
buggy dynamic content - how should I edit/create
The flow seems to work quite well but my expression is for something like filter array is getting to be a little complex...
Read more >
How to fix buggy software - DeSmart
Quality assurance starts with the start of the project. It's a mistake to leave out quality assurance until the very end of the...
Read more >
KNIME 4.3 - New Excel Reader is buggy with flow variables ...
KNIME 4.3 - New Excel Reader is buggy with flow variables based configuration. If you set the Sheet Name with an incoming flow...
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