Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WARNING: No name was provided for external module "xxx" in output.globals – guessing "xxx" #49

Closed
flavens opened this issue Mar 19, 2020 · 5 comments · Fixed by #54
Assignees
Labels
chore Maintenance and build tasks warning

Comments

@flavens
Copy link
Collaborator

flavens commented Mar 19, 2020

Issue in terminal when building the library knora-ui
Screenshot 2020-03-19 at 10 02 11

Solution

  • add the following lines to ng-package.json and ng-package.prod.json
{
    ...
    "lib": {
       ...,
        "umdModuleIds": {
            "@knora/api": "@knora/api",
            "ngx-color-picker": "ngxColorPicker",
            "jdnconvertiblecalendar": "jdnconvertiblecalendar",
            "jdnconvertiblecalendardateadapter": "jdnconvertiblecalendardateadapter",
            "jdnconvertiblecalendar/dist/src/JDNConvertibleCalendar": "JDNConvertibleCalendar"
        }
    }
}
@flavens flavens added the chore Maintenance and build tasks label Mar 19, 2020
@flavens flavens self-assigned this Mar 19, 2020
@tobiasschweizer
Copy link
Contributor

I already wondered about this warning, great!

@flavens
Copy link
Collaborator Author

flavens commented Mar 19, 2020

If it is ok with you, I would like to open a PR to fix issue #49 (this one) and #48 together. It's just chore changes. But #48 may bring some breaking changes because all path to knora-ui will have to be updated to @knora-ui. Of course I will update as many files as I can in the PR.

@flavens
Copy link
Collaborator Author

flavens commented Mar 19, 2020

For information about the other warnings during the built:
WARNING: 'ReadValue', 'ReadTextValueAsString', 'ReadIntValue', 'ReadResource', 'ReadBooleanValue', 'ReadDecimalValue', 'ReadColorValue', 'ReadUriValue', 'ReadIntervalValue', 'ReadTimeValue' and 'PropertyDefinition' are imported from external module '@knora/api' but never used

-> it comes from angular-cli but there is no fix at the moment:
angular/angular#21280
ng-packagr/ng-packagr#710

@tobiasschweizer
Copy link
Contributor

If it is ok with you, I would like to open a PR to fix issue #49 (this one) and #48 together. It's just chore changes. But #48 may bring some breaking changes because all path to knora-ui will have to be updated to @knora-ui. Of course I will update as many files as I can in the PR.

Could we wait with #48 until all value components have been implemented?

@flavens
Copy link
Collaborator Author

flavens commented Mar 19, 2020

Could we wait with #48 until all value components have been implemented?

yes, I can wait this both issues because fixing the warnings is not an emergency...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance and build tasks warning
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants