plotly / dash-component-boilerplate

Get started creating your own Dash components here.
266 stars 182 forks source link

Components not auto-generated #80

Open pieroliviermarquis opened 4 years ago

pieroliviermarquis commented 4 years ago

I installed the boilerplate successfully, but I don't get the auto-generated files.

npm run build also runs successfully, but only creates the javascript files.

npm run build

> customcomp@0.0.1 build C:\customcomp
> npm run build:js && npm run build:py_and_r

> customcomp@0.0.1 build:js C:\customcomp
> webpack --mode production

Hash: 78562a9a02ac926d1bf7
Version: webpack 4.36.1
Time: 544ms
Built at: 08/29/2019 6:20:05 PM
                Asset      Size  Chunks             Chunk Names
    customcomp.min.js  2.75 KiB       0  [emitted]  main
customcomp.min.js.map  7.52 KiB       0  [emitted]  main
Entrypoint main = customcomp.min.js customcomp.min.js.map
[0] external "PropTypes" 42 bytes {0} [built]
[1] external "React" 42 bytes {0} [built]
[2] ./src/lib/index.js + 1 modules 4.29 KiB {0} [built]
    | ./src/lib/index.js 122 bytes [built]
    |     + 1 hidden module

> customcomp@0.0.1 build:py_and_r C:\customcomp
> dash-generate-components ./src/lib/components customcomp -p package-info.json --r-prefix 'xq_'

Warning: a URL for bug reports was not provided. Empty string inserted.
Warning: a homepage URL was not provided. Empty string inserted.
xhluca commented 3 years ago

Hi, can you take a look at this comment? I think it's closely related to the problem you might have.

After running the exactly same commands, I ran ls -lh my_dash_component/ and got:

-rw-rw-r-- 1 xhlu xhlu   81 Aug  4 16:49 _imports_.py
-rw-rw-r-- 1 xhlu xhlu 1.5K Aug  4 16:48 __init__.py
-rw-rw-r-- 1 xhlu xhlu 1.2K Aug  4 16:49 metadata.json
-rw-rw-r-- 1 xhlu xhlu 3.2K Aug  4 16:49 my_dash_component.min.js
-rw-rw-r-- 1 xhlu xhlu 7.5K Aug  4 16:49 my_dash_component.min.js.map
-rw-rw-r-- 1 xhlu xhlu 1.5K Aug  4 16:49 MyDashComponent.py
-rw-rw-r-- 1 xhlu xhlu 1.6K Aug  4 16:49 package-info.json
drwxrwxr-x 2 xhlu xhlu 4.0K Aug  4 16:49 __pycache__

So I think the python file was correctly generated.