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"
}
}
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.
Most helpful comment
Can confirm after explicitly requesting
[email protected]instead of justreact-staticthat it installed correctly with all dependencies.