react-diagrams icon indicating copy to clipboard operation
react-diagrams copied to clipboard

unable to start demo/help needed

Open dcbhz opened this issue 9 years ago • 3 comments

Hello,

i am trying to run the demo example and is not able to start them up. (i am very new to this)

i have downloaded the zip file and unzipped it.

ran command npm install

Next, ran the command npm install webpack --save-dev , added the command "webpack" : "webpack" into the package.json's scripts section.

Next i tried to execute npm run webpack command and was met with the missing modules errors (dependencies). ran the commands below to add the missing dependencies

npm install @storybook/storybook-deployer

npm install closest

npm install lodash

npm install react

and ran npm run webpack again.

right now i met with the errors saying : Property "props" missing Property "state" missing etc

have attached a part of the error as image 9-11-2017 4-04-59 pm

any help would be greatly appreciated, thank you.

dcbhz avatar Sep 11 '17 08:09 dcbhz

Hello. It feels like you've made lot of actions that are unnecessary (like installing react/closest/lodash). so I would try from the very beginning. The point is that you don't need to install packages by name and you don't need to edit package.json

  1. If you're haven't done this before - execute npm install -g webpack
  2. Download zip(https://github.com/projectstorm/react-diagrams/archive/master.zip) OR do git clone https://github.com/projectstorm/react-diagrams.git
  3. In terminal switch to react-diagrams directory
  4. Execute npm install
  5. Execute npm run storybook - this will run storybook with demos on localhost:9001 if this port is free
  6. OPTIONAL: If you want to build the library you can execute webpack.

JokerNN avatar Sep 12 '17 15:09 JokerNN

@JokerNN You are awesome

dylanvorster avatar Sep 12 '17 19:09 dylanvorster

@JokerNN I did the above and get the following error after I execute npm run storybook

ERROR in [at-loader] ./src/Common.ts:3:22
    TS2307: Cannot find module '_debugger'.

What should I do?

horcrux2301 avatar Dec 16 '17 11:12 horcrux2301