PolymerElements / paper-input

A Material Design text field
https://www.webcomponents.org/element/PolymerElements/paper-input
130 stars 162 forks source link

The package.json has no main field #651

Closed lastmjs closed 6 years ago

lastmjs commented 6 years ago

Description

The package.json does not have a main field, breaking bare specifiers because node module resolution depends on the main field.

Expected outcome

Importing the element through a bare specifier should work: import '@polymer/paper-input';

Actual outcome

With my tools, Zwitterion, I get: Error: unknown: Cannot find module '@polymer/paper-input' from './text-editor-tools/prendus-multiple-choice-tool.ts'

notwaldorf commented 6 years ago

cc @e111077

e111077 commented 6 years ago

Hello this is due to multiple main files being listed in our bower.json. This is required for our modulizer to crawl the dependency tree and modulize multiple files. Some of our packages simply will not have a package.json main field until we can determine a canonical solution to what should go in this field for these types of packages.

lastmjs commented 6 years ago

Thank you for the explanation