You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wanted to run a local dev version to play around in docz. Cloned, npm installed, tried running npm run docs...
and make complained about not having a target: 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'.
So fixed that, tried again, and found typo in src/components/navbar/__docs__/navbar.docs.mdx. Fixed that (#59), tried again...
... but nowdocz dev is complaining about about itself:
./node_modules/docz-theme-default/node_modules/docz/dist/index.m.js
Module not found: Can't resolve '~db' in './rbx/node_modules/docz-theme-default/node_modules/docz/dist'
so upgraded docz-theme-default to latest (v1.0.4) (#57), 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`.
The components do render and can be clicked. there's just a big error box. 😢
Lastly, in package.json, should build command be 'make' or 'make build'? latter doesn't work for me.
in conclusion:
package.json scripts calling make commands don't work
docz without latest theme throws error about not finding ~db
1. package.json scripts calling make commands don't work
updated. must've changed it in the makefile w/o updating it in package.json
2. docz without latest theme throws error about not finding ~db
there are quite a few errors now that i've updated all packages. will try and get this up and running shortly.
3. docz with latest theme (#57) has problems with simple-props-table.tsx
• however, this component does not seem necessary for the docz site to mostly work?
Wanted to run a local dev version to play around in docz. Cloned, npm installed, tried running
npm run docs
...and make complained about not having a target: 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'.
So fixed that, tried again, and found typo in
src/components/navbar/__docs__/navbar.docs.mdx
. Fixed that (#59), tried again...... but now
docz dev
is complaining about about itself:so upgraded
docz-theme-default
tolatest
(v1.0.4) (#57), deleted./docz/
cache, and ran$ ./node_modules/.bin/docz dev
... and got react errors in browser when looking at rbx components in docz:The components do render and can be clicked. there's just a big error box. 😢
Lastly, in package.json, should build command be 'make' or 'make build'? latter doesn't work for me.
in conclusion:
~db
simple-props-table.tsx
possible solution: remove
simple-props-table.tsx
for now.The text was updated successfully, but these errors were encountered: