KittenBot / Kittenblock

BSD 3-Clause "New" or "Revised" License
79 stars 57 forks source link

webpack #2

Open cymplecy opened 7 years ago

cymplecy commented 7 years ago

Hi I love Kittenblocks and trying to compile it so I can the ntry and connect to a remote RaspberryPi

I have a few issues

clone this repo

git clone https://github.com/KittenBot/Kittenblock.git enter the root directory of repo

cd KittenbotGui

There doesn't seem to be a KittenbotGui folder so I just cd into the github root

The

node_modules\bin\wepback

I think need changing to node_modules\.bin\webpack

and finally I had a big error when running last webpack from root

C:\Users\Simon\kb\Kittenblock>node_modules\.bin\webpack
Hash: 355b2417193f0938fb60
Version: webpack 1.13.2
Time: 169422ms
                                                Asset       Size  Chunks             Chunk Names
                       media/icons/control_repeat.svg    1.99 kB          [emitted]
                 f4769f9bdb7466be65088239c12046d1.eot    20.1 kB          [emitted]
                fa2772327f55d8198301fdb8bcfc8158.woff    23.4 kB          [emitted]
                 e18bbf611f2a2e43afc071aa2f4e1512.ttf    45.4 kB          [emitted]
                 f721466883998665b87923b92dea655b.svg     109 kB          [emitted]
                 76a342169e90e0b459e48ed02eefa11a.png    2.38 kB          [emitted]
                 d733f433a03f4e873a0b5430bf9681fb.png    1.98 kB          [emitted]
                 674f50d287a8c48dc19ba404d20fe713.eot     166 kB          [emitted]
               af7ae505a9eed503f8b8e6982036873e.woff2    77.2 kB          [emitted]
                fee66e712a8a08eef5805a46892932ad.woff      98 kB          [emitted]
                 b06871f281fee6b241d60582ae9369b9.ttf     166 kB          [emitted]
                 912ec66d7572ff821749319396470bde.svg     444 kB          [emitted]
                 970e4e9a8658fe6b5866ce733242100b.png    3.03 kB          [emitted]
                 c60109f629015e17bafc286da513cec4.png     3.2 kB          [emitted]
                                               gui.js    5.35 MB       0  [emitted]  gui
                                           lib.min.js     726 kB       1  [emitted]  lib
                                           index.html    3.32 kB          [emitted]
                                        media/1x1.gif   43 bytes          [emitted]
                                 media/handclosed.cur  326 bytes          [emitted]
                             media/dropdown-arrow.svg  569 bytes          [emitted]
                                    media/c_arrow.svg    2.45 kB          [emitted]
                        media/dropdown-arrow-dark.svg  574 bytes          [emitted]
                                   media/handopen.cur  198 bytes          [emitted]
                             media/turnleft_arrow.png  353 bytes          [emitted]
                                     media/delete.wav    40.1 kB          [emitted]
                            media/turnright_arrow.png  344 bytes          [emitted]
                                      media/click.wav    49.9 kB          [emitted]
                                 media/handdelete.cur  766 bytes          [emitted]
                                    media/sprites.svg    1.85 kB          [emitted]
                         media/icons/control_stop.svg  301 bytes          [emitted]
                      media/icons/control_forever.svg    4.67 kB          [emitted]
                         media/icons/control_wait.svg    1.14 kB          [emitted]
                                    media/sprites.png    4.15 kB          [emitted]
               448c34a56d699c29117adc64c43affeb.woff2      18 kB          [emitted]
                 media/icons/event_broadcast_blue.svg    1.65 kB          [emitted]
                media/icons/event_broadcast_coral.svg    1.66 kB          [emitted]
              media/icons/event_broadcast_magenta.svg    1.66 kB          [emitted]
   media/icons/event_when-broadcast-received_blue.svg    1.65 kB          [emitted]
               media/icons/event_broadcast_orange.svg    1.66 kB          [emitted]
                media/icons/event_broadcast_green.svg    1.66 kB          [emitted]
  media/icons/event_when-broadcast-received_green.svg    1.65 kB          [emitted]
media/icons/event_when-broadcast-received_magenta.svg    1.66 kB          [emitted]
               media/icons/event_broadcast_purple.svg    1.65 kB          [emitted]
  media/icons/event_when-broadcast-received_coral.svg    1.65 kB          [emitted]
 media/icons/event_when-broadcast-received_orange.svg    1.66 kB          [emitted]
                        media/icons/set-led_green.svg    2.04 kB          [emitted]
                         media/icons/set-led_blue.svg    2.04 kB          [emitted]
                media/icons/event_whenflagclicked.svg  634 bytes          [emitted]
                        media/icons/set-led_coral.svg    2.04 kB          [emitted]
 media/icons/event_when-broadcast-received_purple.svg    1.65 kB          [emitted]
                      media/icons/set-led_magenta.svg    2.04 kB          [emitted]
                      media/icons/set-led_mystery.svg    2.96 kB          [emitted]
                       media/icons/set-led_purple.svg    2.04 kB          [emitted]
                       media/icons/set-led_yellow.svg    2.04 kB          [emitted]
                       media/icons/set-led_orange.svg    2.04 kB          [emitted]
                        media/icons/set-led_white.svg    2.04 kB          [emitted]
          media/icons/wedo_motor-counterclockwise.svg    3.73 kB          [emitted]
                 media/icons/wedo_motor-clockwise.svg    3.75 kB          [emitted]
                media/icons/wedo_motor-speed_fast.svg    4.33 kB          [emitted]
                 media/icons/wedo_motor-speed_med.svg    4.35 kB          [emitted]
                media/icons/wedo_motor-speed_slow.svg    4.36 kB          [emitted]
             media/icons/wedo_when-distance_close.svg    4.75 kB          [emitted]
              media/icons/wedo_when-tilt-backward.svg    4.91 kB          [emitted]
                  media/icons/wedo_when-tilt-left.svg    3.65 kB          [emitted]
                 media/icons/wedo_when-tilt-right.svg    3.66 kB          [emitted]
               media/icons/wedo_when-tilt-forward.svg    4.93 kB          [emitted]
                       media/icons/wedo_when-tilt.svg    4.11 kB          [emitted]
   [0] multi lib 40 bytes {1} [built]
 [310] ./scratch-vm/dist.js 518 kB {0} [built]
 [311] ./scratch-blocks/dist/vertical.js 920 kB {0} [built]
 [312] ./kittenblock-pc/kittenblock.js 299 kB {0} [built]
 [347] ./scratch-render/dist.js 823 kB {0} [built]
    + 781 hidden modules

ERROR in   Error: Child compilation failed:
  Entry module not found: Error: Cannot resolve 'file' or 'directory' C:\Users\S  imon\kb\Kittenblock\index.html in C:\Users\Simon\kb\Kittenblock:
  Error: Cannot resolve 'file' or 'directory' C:\Users\Simon\kb\Kittenblock\inde  x.html in C:\Users\Simon\kb\Kittenblock

Can you help please?
jie1995 commented 5 years ago

I have the same problem,Have you solved it ?Can you help please?