hasura / gatsby-gitbook-starter

Generate GitBook style modern docs/tutorial websites using Gatsby + MDX
https://hasura.io/learn/graphql/react/introduction/
MIT License
985 stars 376 forks source link

Error: Cannot find module 'to-style' #9

Closed omattman closed 5 years ago

omattman commented 5 years ago

Any progress on this error?

On npm start I get:

> gatsby-gitbook-boilerplate@0.0.1 start /mnt/c/dev/gatsby-gitbook-starter
> gatsby develop

success open and validate gatsby-configs - 0.061 s

 ERROR 

Error in "/mnt/c/dev/gatsby-gitbook-starter/node_modules/gatsby-mdx/gatsby-node.js": Cannot find module 'to-style'

  Error: Cannot find module 'to-style'

  - v8-compile-cache.js:159 require
    [gatsby-gitbook-starter]/[v8-compile-cache]/v8-compile-cache.js:159:20

  - babel-plugin-html-attr-to-jsx-attr.js:2 Object.<anonymous>
    [gatsby-gitbook-starter]/[gatsby-mdx]/utils/babel-plugin-html-attr-to-jsx-attr.js:2    :23

  - v8-compile-cache.js:178 Module._compile
    [gatsby-gitbook-starter]/[v8-compile-cache]/v8-compile-cache.js:178:30

  - v8-compile-cache.js:159 require
    [gatsby-gitbook-starter]/[v8-compile-cache]/v8-compile-cache.js:159:20

  - gen-mdx.js:9 Object.<anonymous>
    [gatsby-gitbook-starter]/[gatsby-mdx]/utils/gen-mdx.js:9:27

  - v8-compile-cache.js:178 Module._compile
    [gatsby-gitbook-starter]/[v8-compile-cache]/v8-compile-cache.js:178:30

⠋ load plugins

npm ERR! Linux 4.4.0-17763-Microsoft
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! gatsby-gitbook-boilerplate@0.0.1 start: `gatsby develop`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gatsby-gitbook-boilerplate@0.0.1 start script 'gatsby develop'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the gatsby-gitbook-boilerplate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gatsby develop
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs gatsby-gitbook-boilerplate
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls gatsby-gitbook-boilerplate
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /mnt/c/dev/gatsby-gitbook-starter/npm-debug.log