yarn start fails: cannot find module 'react-static/babel-preset.js'
See original GitHub issueAre you reporting a bug?
Yes
Environment
react-static -V
: 6.0.18node -v
: v10.14.2npm -v
: 6.4.1- Operating system: macOS 10.14.2
- Browser and version (if relevant):
Steps to Reproduce the problem
- 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...
- 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:
- Created 5 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Template is installing the wrong version of
react-static
. If you bump the version inpackage.json
, it fixes the issue.Fixed in #917