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

fix missing backtick typo #59

Closed
wants to merge 1 commit into from
Closed

Conversation

100ideas
Copy link

... but there are still errors - now docz dev is complaining

./node_modules/docz-theme-default/node_modules/docz/dist/index.m.js
Module not found: Can't resolve '~db' in '/Users/100ideas/dev/da-play/0_mock/rbx/node_modules/docz-theme-default/node_modules/docz/dist'

so upgraded docz-theme-default to latest (v1.0.4), deleted ./docz/ cache, and ran $ ./node_modules/.bin/docz dev... and got react errors in browser when looking at rbx components in docz:

(BaseSimplePropsTable, in code (at simple-props-table.tsx:131)) Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of `BaseSimplePropsTable`.

but the components do render and can be clicked. there's just a big error box. 😢

also, there is a mismatch between how the make tasks are named in the Makefile and how they are called from npm package.json scripts. Makefile uses hyphen like 'docs-dev' but package.json uses underscore like 'docs_dev'. Also, in package.json, should build command be 'make' or 'make build'? latter doesn't work for me.

... but there are still errors - now `docz dev` is complaining

```
./node_modules/docz-theme-default/node_modules/docz/dist/index.m.js
Module not found: Can't resolve '~db' in '/Users/100ideas/dev/da-play/0_mock/rbx/node_modules/docz-theme-default/node_modules/docz/dist'
```
so upgraded `docz-theme-default` to  `latest` (v1.0.4), deleted `./docz/` cache, and ran `$ ./node_modules/.bin/docz dev`... and got react errors in browser when looking at rbx components in docz:

```
(BaseSimplePropsTable, in code (at simple-props-table.tsx:131)) Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of `BaseSimplePropsTable`.
```

but the components do render and can be clicked. there's just a big error box. 😢 

also, there is a mismatch between how the make tasks are named in the Makefile and how they are called from npm package.json scripts. Makefile uses hyphen like 'docs-dev' but package.json uses underscore like 'docs_dev'. Also, in package.json, should build command be 'make' or 'make build'? latter doesn't work for me.
@dfee
Copy link
Owner

dfee commented Jun 14, 2019

fixed in master.

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

Successfully merging this pull request may close these issues.

2 participants