edbrsk / d3-stencil

Charts built with D3 and Stencil. Framework-agnostic, simple.
https://d3-stencil.dev
MIT License
67 stars 15 forks source link

Duplicate components #126

Open goulu opened 4 years ago

goulu commented 4 years ago

I just followed the instructions at https://d3-stencil.dev/docs/dev/dev-intro.html and got :

yarn run v1.22.4
$ stencil build --dev --watch --serve
[25:54.7]  @stencil/core v1.14.0
[25:57.2]  build, d3-stencil, dev mode, started ...
[25:57.2]  transpile started ...
[25:58.3]  transpile finished in 1.05 s

[ ERROR ]  Component Tag Name "bcg-matrix-chart" Must Be Unique
           Please update the components so "bcg-matrix-chart" is only used once:
           ./dist/collection/components/bcg-matrix-chart/bcg-matrix-chart.js
           ./src/components/bcg-matrix-chart/bcg-matrix-chart.tsx

[ ERROR ]  Component Tag Name "horizontal-bar-chart" Must Be Unique
           Please update the components so "horizontal-bar-chart" is only used once:
           ./dist/collection/components/horizontal-bar-chart/horizontal-bar-chart.js
           ./src/components/horizontal-bar-chart/horizontal-bar-chart.tsx

[ ERROR ]  Component Tag Name "legend-chart" Must Be Unique
           Please update the components so "legend-chart" is only used once:
           ./dist/collection/components/legend-chart/legend-chart.js ./src/components/legend-chart/legend-chart.tsx

[ ERROR ]  Component Tag Name "line-annotations-chart" Must Be Unique
           Please update the components so "line-annotations-chart" is only used once:
           ./dist/collection/components/line-annotations-chart/line-annotations-chart.js
           ./src/components/line-annotations-chart/line-annotations-chart.tsx

[ ERROR ]  Component Tag Name "line-chart" Must Be Unique
           Please update the components so "line-chart" is only used once:
           ./dist/collection/components/line-chart/line-chart.js ./src/components/line-chart/line-chart.tsx

[ ERROR ]  Component Tag Name "pie-chart" Must Be Unique
           Please update the components so "pie-chart" is only used once:
           ./dist/collection/components/pie-chart/pie-chart.js ./src/components/pie-chart/pie-chart.tsx

[ ERROR ]  Component Tag Name "tooltip-chart" Must Be Unique
           Please update the components so "tooltip-chart" is only used once:
           ./dist/collection/components/tooltip-chart/tooltip-chart.js ./src/components/tooltip-chart/tooltip-chart.tsx

[25:58.3]  build failed, watching for changes... in 1.10 s

[25:58.3]  http://localhost:3333/

and the same on the page http://localhost:3333/ What's wrong ?

I'm new to stencil, but I know D3 ...

Thanks

goulu commented 4 years ago

seems related Stencil version > 1.9 on Windows (see https://github.com/ionic-team/stencil/issues/2319 )

goulu commented 4 years ago

Confirmed : does not happen with "@stencil/core": "1.9.2"

Seems to be a stencil problem on Windows, but any idea to circumvent this is welcome ...