question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

yarn start fails: cannot find module 'react-static/babel-preset.js'

See original GitHub issue

Are you reporting a bug?

Yes

Environment

  1. react-static -V: 6.0.18
  2. node -v: v10.14.2
  3. npm -v: 6.4.1
  4. Operating system: macOS 10.14.2
  5. Browser and version (if relevant):

Steps to Reproduce the problem

  1. Create a new project:
$ react-static create

? What should we name this project? my-blog
? Select a template below... basic
=> Creating new react-static project...
  1. Start the dev server:
$ cd my-blog
$ yarn start
yarn run v1.12.3
$ react-static start
  Error: Cannot find module 'react-static/babel-preset.js' from '/path/to/my-blog'
  [...]
  TypeError: Cannot read property 'DIST' of undefined

  - start.js:85 _callee2$
    [my-blog]/[react-static]/lib/commands/start.js:85:69

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mjsisleycommented, Dec 23, 2018

Template is installing the wrong version of react-static. If you bump the version in package.json, it fixes the issue.

0reactions
tannerlinsleycommented, Dec 24, 2018

Fixed in #917

Read more comments on GitHub >

github_iconTop Results From Across the Web

Calling 'yarn start' causes 'Error: Cannot find module 'Stylesheet'
I was able to successfully do yarn install minus some warnings which I think are expected but stumped on what to do with...
Read more >
npm start (yarn start) error. cannot find @babel/register
I usually use yarn start to run my app. Error messege is "cannot find @babel/register" but there is on the package.json. In my...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
In my case, I need to install the react-icons package so the freeCodeCamp icon can be resolved. I'll do that by running yarn...
Read more >
Troubleshooting | Yarn
Cannot find module <require-path>. This error message is not generated by Plug'n'Play. Ever. If you get it, it very likely means that your...
Read more >
How to resolve "Cannot find module" error in Node - Sabe.io
When you are working in Node, you will sometimes encounter the error Cannot find module 'module-name' with the error code MODULE_NOT_FOUND .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found