Docz: Docz default theme is no dependency.

Created on 18 Dec 2018  路  4Comments  路  Source: doczjs/docz

Bug Report

Describe the bug
Currently installing the docz package does not bring the default theme with it, which will lead to the following error:
Module not found: Can't resolve 'docz-theme-default'

A clear and concise description of what the bug is.
docz-theme-default is no dependency of docz.

To Reproduce
Install docz and try to start dev.

docz dev

Expected behavior
docz-theme-default is installed with the docz package or it is stated in the documentation otherwise

Environment

  • OS: OSX 10.14
  • Node/npm version: Node 11/npm 6.1.4

Most helpful comment

@pedronauck then I think it should be mentioned in the get started docs, so it is not causing errors there 馃檪

All 4 comments

Since v0.12.17 now you need to explicit install docz-theme-default as dependency on your project.

@pedronauck then I think it should be mentioned in the get started docs, so it is not causing errors there 馃檪

after updating and installing docz-theme-default, im getting

Compiled with warnings.

./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'.

is there something else i must do ?

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'ComponentsProvider' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useComponents' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useComponents' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useComponents' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useConfig' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useConfig' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useConfig' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useConfig' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useConfig' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useConfig' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useConfig' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useConfig' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useConfig' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/chunk.esm.js
Attempted import error: 'useConfig' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm2.js
Attempted import error: 'useConfig' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useDocs' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useDocs' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useMenus' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'usePrevious' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'usePrevious' is not exported from 'docz'.

./node_modules/docz-theme-default/dist/index.esm.js
Attempted import error: 'useWindowSize' is not exported from 'docz'.

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicholasess picture nicholasess  路  3Comments

hayk94 picture hayk94  路  3Comments

ilyanoskov picture ilyanoskov  路  3Comments

fenbka picture fenbka  路  3Comments

brunolemos picture brunolemos  路  3Comments