React-static: Selecting "styled-components" generates an incomplete package.json

Created on 14 Nov 2017  Â·  4Comments  Â·  Source: react-static/react-static

Hello, when using the latest version of this (v4.0.1) and selecting "styled-components" out of the options to generate an incomplete package.json is generated which prevents the project from working properly.

The following is generated:

{
  "dependencies": {
    "react-static": "^4.1.0"
  }
}

Most helpful comment

Can confirm after explicitly requesting [email protected] instead of just react-static that it installed correctly with all dependencies.

All 4 comments

Hi @josephdburdick!

That's odd. How did you go about it? I just installed a fresh global version of [email protected], ran react-static create, named it test-styled, selected the styled-components example and got the following package.json, which worked great:

{
  "name": "react-static-starter",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "scripts": {
    "start": "react-static start",
    "build": "react-static build",
    "serve": "serve dist -p 3000"
  },
  "dependencies": {
    "axios": "^0.16.2",
    "react": "^16.0.0",
    "react-dom": "^16.0.0",
    "react-router": "^4.2.0",
    "react-static": "^4.1.0",
    "styled-components": "2.2.0"
  },
  "devDependencies": {
    "eslint-config-react-tools": "1.x.x",
    "serve": "^6.1.0"
  }
}

?
On Mon, Nov 13, 2017 at 5:40 PM Jorge Gonzalez notifications@github.com
wrote:

Don't @ me 💅

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nozzle/react-static/issues/162#issuecomment-344107216,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFUmCX8YMn6W0bHoyikHH5q5gfluOiaHks5s2OGQgaJpZM4Qcncs
.

Hmm, interesting. It appears my global install left me with v4.0.1. I did another global install and was left without 'styled-components' inside package.json. I'll try to reinstall.

Can confirm after explicitly requesting [email protected] instead of just react-static that it installed correctly with all dependencies.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sw-yx picture sw-yx  Â·  3Comments

josephdburdick picture josephdburdick  Â·  4Comments

killvung picture killvung  Â·  3Comments

bard picture bard  Â·  3Comments

PolMrt picture PolMrt  Â·  3Comments