britecharts/britecharts-react

npm start failed

Closed this issue · 12 comments

Failed to compile.

./src/charts/helpers/validation.js

/work/d3/britecharts-react-master/src/charts/helpers/validation.js
24:30 warning 'data' is defined but never used no-unused-vars

✖ 1 problem (0 errors, 1 warning)

@ ./src/charts/bar/barChart.js 13:18-50
@ ./src/charts/bar/Bar.js
@ multi (webpack)-dev-server/client?http://localhost:8080 ./src/charts/bar/Bar.js

Hi @wulucxy , thanks for the issue!

We need to clean that function. However it is a warning, are you sure it didn't compile?

This warning should be fixed with the last PR.
Closing now.

@miglesiasEB still does not work。
the error message is:

VM4969 87:97 Uncaught TypeError: Cannot read property 'PureComponent' of undefined
    at eval (VM4969 87:97)
    at Object.<anonymous> (Step.js:1103)
    at __webpack_require__ (Step.js:20)
    at eval (Step.js:4)
    at Object.<anonymous> (Step.js:1160)
    at __webpack_require__ (Step.js:20)
    at Object.<anonymous> (Step.js:1147)
    at __webpack_require__ (Step.js:20)
    at Step.js:63
    at Step.js:66

Will try to reproduce, thanks!

@miglesiasEB can you tell me how to start this project?
npm run start can not work

Hi @wulucxy, could you update master and try again?
I cannot reproduce the error. Which node version are you using?

my node is v7.10.1
and i use yarn for installation.

Hi @wulucxy,

Using yarn to install in 7.10 showed this message:
warning You are using Node "7.10.1" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0"
Maybe that's the issue?

When using npm to install and to run start with your node version it worked fine

error msg:
_65e1ade7-fd2b-407c-9b05-6693408b413c

node -v
v7.10.1

dashborad
_dd4429cc-b75a-4051-b733-650ceef7a19a

@Golodhros npm run build seems ok。

so, how do you run the dev server?

Did you try to install everything with npm instead of yarn?

For running the dev server you need to run that 'npm run start' and do also 'npm run styleguide' in order to see the docs.

Hi, could you make this work @wulucxy ?