dash-component-boilerplate icon indicating copy to clipboard operation
dash-component-boilerplate copied to clipboard

Components not auto-generated

Open pieroliviermarquis opened this issue 5 years ago • 1 comments

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

> [email protected] build C:\customcomp
> npm run build:js && npm run build:py_and_r


> [email protected] 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

> [email protected] 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.

pieroliviermarquis avatar Aug 29 '19 22:08 pieroliviermarquis

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.

xhluca avatar Aug 04 '20 20:08 xhluca