jfinity / managed-attrs

Utilities aiming to normalize and simplify state management (in React)
MIT License
0 stars 1 forks source link

Run script seems broken #9

Open stephencweiss opened 4 years ago

stephencweiss commented 4 years ago

Tried running the slides with both npm and yarn and have run into a few errors:

  1. Looks like @emotion/core, gatsby-theme-mdx-deck, and theme-ui are dependencies, but are not listed
  2. Even after adding them as dependencies (as well as gatsby), I'm still getting an error with gatsby-theme-mdx-deck

OS: MacOS 10.15.6 npm: 6.14.7 yarn: 1.22.4 node: 12.18.3

Thanks in advance for any suggestions about what I'm missing!

Logs related to Issue 1 above

 ERROR

[BABEL] Note: The code generator has deoptimised the styling of /Users/stephen.weiss/code/temp/managed-attrs/node_modules/mdx-deck/node_modules/react-dom/cjs/react-dom.development.js as it exceeds the max of 500KB.

 ERROR #98124  WEBPACK

Generating SSR bundle failed

Can't resolve '@emotion/core' in '/Users/stephen.weiss/code/temp/managed-attrs/docs/slides/controlled'

If you're trying to use a package make sure that '@emotion/core' is installed. If you're trying to use a local file make sure that the path is correct.

File: ../../docs/slides/controlled/widgets.js

 ERROR #98124  WEBPACK

Generating SSR bundle failed

Can't resolve '@emotion/core' in '/Users/stephen.weiss/code/temp/managed-attrs/node_modules/@mdx-deck/themes'

If you're trying to use a package make sure that '@emotion/core' is installed. If you're trying to use a local file make sure that the path is correct.

File: ../@mdx-deck/themes/syntax-highlighter.js

 ERROR #98124  WEBPACK

Generating SSR bundle failed

Can't resolve '@emotion/core' in '/Users/stephen.weiss/code/temp/managed-attrs/node_modules/@mdx-deck/themes'

If you're trying to use a package make sure that '@emotion/core' is installed. If you're trying to use a local file make sure that the path is correct.

File: ../@mdx-deck/themes/syntax-highlighter-prism.js

 ERROR #98124  WEBPACK

Generating SSR bundle failed

Can't resolve '@emotion/core' in '/Users/stephen.weiss/code/temp/managed-attrs/node_modules/@mdx-deck/themes'

If you're trying to use a package make sure that '@emotion/core' is installed. If you're trying to use a local file make sure that the path is correct.

File: ../@mdx-deck/themes/dots.js

 ERROR #98124  WEBPACK

Generating SSR bundle failed

Can't resolve '@emotion/core' in '/Users/stephen.weiss/code/temp/managed-attrs/node_modules/gatsby-plugin-mdx'

If you're trying to use a package make sure that '@emotion/core' is installed. If you're trying to use a local file make sure that the path is correct.

File: ../gatsby-plugin-mdx/wrap-root-element.js

 ERROR #98124  WEBPACK

Generating SSR bundle failed

Can't resolve 'gatsby-theme-mdx-deck' in '/Users/stephen.weiss/code/temp/managed-attrs/node_modules/@mdx-deck/themes'

If you're trying to use a package make sure that 'gatsby-theme-mdx-deck' is installed. If you're trying to use a local file make sure that the path is correct.

File: ../@mdx-deck/themes/dots.js

 ERROR #98124  WEBPACK

Generating SSR bundle failed

Can't resolve 'theme-ui' in '/Users/stephen.weiss/code/temp/managed-attrs/node_modules/@code-surfer/themes/dist'

If you're trying to use a package make sure that 'theme-ui' is installed. If you're trying to use a local file make sure that the path is correct.

File: ../@code-surfer/themes/dist/themes.esm.js

 ERROR #98124  WEBPACK

Generating SSR bundle failed

Can't resolve 'theme-ui' in '/Users/stephen.weiss/code/temp/managed-attrs/node_modules/@mdx-deck/themes'

If you're trying to use a package make sure that 'theme-ui' is installed. If you're trying to use a local file make sure that the path is correct.

File: ../@mdx-deck/themes/dots.js

Error: Command failed with exit code 1 (EPERM): gatsby develop --host localhost --port 8000 --open
    at makeError (/Users/stephen.weiss/code/temp/managed-attrs/node_modules/mdx-deck/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/Users/stephen.weiss/code/temp/managed-attrs/node_modules/mdx-deck/node_modules/execa/index.js:112:26)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
error Command failed with exit code 1.

Logs related to 2 above

yarn && yarn keyframe && yarn templit && yarn deck
yarn install v1.22.4
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.82s.
yarn run v1.22.4
$ node docs/slides/code-keyframer.js docs/slides/controlled/keyframes/ ../snippets/
/Users/stephen.weiss/code/temp/managed-attrs/docs/slides/controlled/snippets/004-refactor/02-LineItem.js 8
/Users/stephen.weiss/code/temp/managed-attrs/docs/slides/controlled/snippets/003-compare/01-ValueInput.js 9
/Users/stephen.weiss/code/temp/managed-attrs/docs/slides/controlled/snippets/004-refactor/03-CodecField.js 18
/Users/stephen.weiss/code/temp/managed-attrs/docs/slides/controlled/snippets/002-structure/01-ValueInput.js 18
/Users/stephen.weiss/code/temp/managed-attrs/docs/slides/controlled/snippets/006-compose/03-ItemList.js 35
/Users/stephen.weiss/code/temp/managed-attrs/docs/slides/controlled/snippets/003-compare/02-BasicButton.js 44
/Users/stephen.weiss/code/temp/managed-attrs/docs/slides/controlled/snippets/003-compare/02-LineItem.js 49
/Users/stephen.weiss/code/temp/managed-attrs/docs/slides/controlled/snippets/004-refactor/02-BasicButton.js 56
/Users/stephen.weiss/code/temp/managed-attrs/docs/slides/controlled/snippets/005-conform/02-LineItem.js 56

done
✨  Done in 0.34s.
yarn run v1.22.4
$ node docs/slides/templit-filer.js docs/slides/controlled/
/Users/stephen.weiss/code/temp/managed-attrs/docs/slides/controlled/deck.mdx.templit.js

done
✨  Done in 0.18s.
yarn run v1.22.4
$ mdx-deck docs/slides/controlled/deck.mdx
info Deleting .cache, public, /Users/stephen.weiss/code/temp/managed-attrs/node_modules/mdx-deck/node_modules/.cache/babel-loader,
info Successfully deleted directories
Debugger listening on ws://127.0.0.1:9229/15f33a6c-7ffb-422b-bbd3-763b24eedf67
For help, see: https://nodejs.org/en/docs/inspector
success open and validate gatsby-configs - 0.074s
success load plugins - 1.582s
success onPreInit - 0.036s
success initialize cache - 0.008s
success copy gatsby files - 0.044s
success onPreBootstrap - 0.014s
success createSchemaCustomization - 0.008s
success Checking for changed pages - 0.002s
success source and transform nodes - 1.468s
success building schema - 0.224s
success createPages - 1.629s
success Checking for changed pages - 0.001s
success createPagesStatefully - 0.039s
success update schema - 0.024s
success write out redirect data - 0.002s
success onPostBootstrap - 0.002s
info bootstrap finished - 8.664s
success onPreExtractQueries - 0.001s
success extract queries from components - 0.181s
success write out requires - 0.024s
success run page queries - 0.030s - 3/3 100.07/s

 ERROR #98123  WEBPACK

Generating SSR bundle failed

Unexpected token (4:48)

File: ../gatsby-theme-mdx-deck/src/index.js:4:48

Error: Command failed with exit code 1 (EPERM): gatsby develop --host localhost --port 8000 --open
    at makeError (/Users/stephen.weiss/code/temp/managed-attrs/node_modules/mdx-deck/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/Users/stephen.weiss/code/temp/managed-attrs/node_modules/mdx-deck/node_modules/execa/index.js:112:26)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
jfinity commented 4 years ago

Hey @stephencweiss , thanks for your interest in the presentation. Looking into it but for now, all I can say is (if you can stomach it) please use npm instead of yarn for the time being...

jfinity commented 4 years ago

(I'll also add that a version of the slides is currently available here -- https://jfinity-state-basics.netlify.app/)