Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 200 forks source link

modulizer cannot find components in src sub directory #2823

Open zeeshanhyder opened 6 years ago

zeeshanhyder commented 6 years ago

I have index.html at the root of directory and components in src directory. In my index.html, i am loading module using link tag like this <link rel="import" href="./src/sh-accordion/sh-accordion.html". But when running modulizer, i get this error:

< link rel="import" href="./src/sh-accordion/sh-accordion.html"  >
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/htdocs/web-assets/index.html(4,9) warning [import-ignored] - Import could not be loaded and will be ignored.

This is the command i give at the root of directory:

modulizer --out ./out

Only when i move my component out of src directory and put it in root directory and update path in <link> does the modulizer properly convert the component. Why is this happening?

I am using Modulizer 0.4.0 with node 8.11 on Windows.

This is my directory structure:

Please help. Thanks

csozoli commented 5 years ago

Hi,

may I repeat the same problem stated in this bug report in hope it gets being dealt with. We have a polymer project based on version 2, and as html imports are going to be removed + we need to continue porting our products to polymer, we need some ways to upgrade them to polymer 3. Without the modulizer it is a painstaking work. So could you please check on this report. Thank you

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.