No name was provided for external moduleWhat's the difference between an Angular component and moduleAngular2 No provider for service - external moduleIn Angular, How to externalize Providers as constants to be exported?Create an external module in Angular 4Angular 4 Core Module, why there are two provider arraysUnexpected directive 'MatSpinner' imported by the module 'AppModule'. Please add a @NgModule annotationImporting external module functions in AngularAngular4 multiple modules issueCore module component and Shared module implementation in angularCreating a library, then including that library in another created library in Angular 7 generates No name was provided for external module

Should I avoid hard-packed crusher dust trails with my hybrid?

Inward extrusion is not working

What is the `some` keyword in SwiftUI?

How to tell your grandparent to not come to fetch you with their car?

Is it a problem if <h4>, <h5> and <h6> are smaller than regular text?

What can I, as a user, do about offensive reviews in App Store?

C++ Arduino IDE receiving garbled `char` from function

Pre-1972 sci-fi short story or novel: alien(?) tunnel where people try new moves and get destroyed if they're not the correct ones

A curious prime counting approximation or just data overfitting?

Did Milano or Benatar approve or comment on their namesake MCU ships?

Logarithm of exponential

Are there any important biographies of nobodies?

Using "subway" as name for London Underground?

Someone whose aspirations exceed abilities or means

How did old MS-DOS games utilize various graphic cards?

Why doesn't Adrian Toomes give up Spider-Man's identity?

What ways have you found to get edits from non-LaTeX users?

This riddle is not to see but to solve

SQL counting distinct over partition

How Often Do Health Insurance Providers Drop Coverage?

How to signal to my players that the following part is supposed to be played on fast forward?

What do abbreviations in movie scripts stand for?

Is it possible to have a wealthy country without middle class?

How to return a security deposit to a tenant



No name was provided for external module


What's the difference between an Angular component and moduleAngular2 No provider for service - external moduleIn Angular, How to externalize Providers as constants to be exported?Create an external module in Angular 4Angular 4 Core Module, why there are two provider arraysUnexpected directive 'MatSpinner' imported by the module 'AppModule'. Please add a @NgModule annotationImporting external module functions in AngularAngular4 multiple modules issueCore module component and Shared module implementation in angularCreating a library, then including that library in another created library in Angular 7 generates No name was provided for external module






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








2















I created a data library, then tried to include the data library into another created library. Built fine, but received - "No name was provided for external module 'my-data' in output.globals – guessing 'myData'". What am I missing?



Complete steps to re-create.



  • ng new test-project --create=application=false

  • cd test-project

  • npm audit fix

  • ng g library my-data

  • ng g library my-core

  • ng g application address-book

  • ng build my-data

  • Then in my-core.module add import MyDataModule from 'my-data';

  • Then in my-core.module add imports: [MyDataModule]

  • ng build my-core

my-core.module.ts



import NgModule from '@angular/core';
import MyCoreComponent from './my-core.component';
import MyDataModule from 'my-data';

@NgModule(
declarations: [MyCoreComponent],
imports: [MyDataModule],
exports: [MyCoreComponent]
)
export class MyCoreModule


  • After build get "No name was provided for external module 'my-data' in output.globals – guessing 'myData'"









share|improve this question






















  • Need to see my data

    – Pari Baker
    Mar 24 at 17:15











  • This looks like a informational message from ngc. Does the application work? If so, you can ignore this.

    – R. Richards
    Mar 24 at 17:24











  • Pari Baker, there is no data, you have the complete steps above. I did not create any components or modules or add any code to the application. If you follow the steps as outlined above you will get same.

    – Ty Showers
    Mar 25 at 17:51











  • R. Richards, I am just trying to understand how libraries work in Angular 6/7 because I have an Angular 5 application that I plan to port to Angular 7. Again, there is nothing really to test, as I have not added any code, I just ran the steps outlined above and got that message and trying to understand why.

    – Ty Showers
    Mar 25 at 17:53

















2















I created a data library, then tried to include the data library into another created library. Built fine, but received - "No name was provided for external module 'my-data' in output.globals – guessing 'myData'". What am I missing?



Complete steps to re-create.



  • ng new test-project --create=application=false

  • cd test-project

  • npm audit fix

  • ng g library my-data

  • ng g library my-core

  • ng g application address-book

  • ng build my-data

  • Then in my-core.module add import MyDataModule from 'my-data';

  • Then in my-core.module add imports: [MyDataModule]

  • ng build my-core

my-core.module.ts



import NgModule from '@angular/core';
import MyCoreComponent from './my-core.component';
import MyDataModule from 'my-data';

@NgModule(
declarations: [MyCoreComponent],
imports: [MyDataModule],
exports: [MyCoreComponent]
)
export class MyCoreModule


  • After build get "No name was provided for external module 'my-data' in output.globals – guessing 'myData'"









share|improve this question






















  • Need to see my data

    – Pari Baker
    Mar 24 at 17:15











  • This looks like a informational message from ngc. Does the application work? If so, you can ignore this.

    – R. Richards
    Mar 24 at 17:24











  • Pari Baker, there is no data, you have the complete steps above. I did not create any components or modules or add any code to the application. If you follow the steps as outlined above you will get same.

    – Ty Showers
    Mar 25 at 17:51











  • R. Richards, I am just trying to understand how libraries work in Angular 6/7 because I have an Angular 5 application that I plan to port to Angular 7. Again, there is nothing really to test, as I have not added any code, I just ran the steps outlined above and got that message and trying to understand why.

    – Ty Showers
    Mar 25 at 17:53













2












2








2








I created a data library, then tried to include the data library into another created library. Built fine, but received - "No name was provided for external module 'my-data' in output.globals – guessing 'myData'". What am I missing?



Complete steps to re-create.



  • ng new test-project --create=application=false

  • cd test-project

  • npm audit fix

  • ng g library my-data

  • ng g library my-core

  • ng g application address-book

  • ng build my-data

  • Then in my-core.module add import MyDataModule from 'my-data';

  • Then in my-core.module add imports: [MyDataModule]

  • ng build my-core

my-core.module.ts



import NgModule from '@angular/core';
import MyCoreComponent from './my-core.component';
import MyDataModule from 'my-data';

@NgModule(
declarations: [MyCoreComponent],
imports: [MyDataModule],
exports: [MyCoreComponent]
)
export class MyCoreModule


  • After build get "No name was provided for external module 'my-data' in output.globals – guessing 'myData'"









share|improve this question














I created a data library, then tried to include the data library into another created library. Built fine, but received - "No name was provided for external module 'my-data' in output.globals – guessing 'myData'". What am I missing?



Complete steps to re-create.



  • ng new test-project --create=application=false

  • cd test-project

  • npm audit fix

  • ng g library my-data

  • ng g library my-core

  • ng g application address-book

  • ng build my-data

  • Then in my-core.module add import MyDataModule from 'my-data';

  • Then in my-core.module add imports: [MyDataModule]

  • ng build my-core

my-core.module.ts



import NgModule from '@angular/core';
import MyCoreComponent from './my-core.component';
import MyDataModule from 'my-data';

@NgModule(
declarations: [MyCoreComponent],
imports: [MyDataModule],
exports: [MyCoreComponent]
)
export class MyCoreModule


  • After build get "No name was provided for external module 'my-data' in output.globals – guessing 'myData'"






angular angular7






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 24 at 17:12









Ty ShowersTy Showers

165




165












  • Need to see my data

    – Pari Baker
    Mar 24 at 17:15











  • This looks like a informational message from ngc. Does the application work? If so, you can ignore this.

    – R. Richards
    Mar 24 at 17:24











  • Pari Baker, there is no data, you have the complete steps above. I did not create any components or modules or add any code to the application. If you follow the steps as outlined above you will get same.

    – Ty Showers
    Mar 25 at 17:51











  • R. Richards, I am just trying to understand how libraries work in Angular 6/7 because I have an Angular 5 application that I plan to port to Angular 7. Again, there is nothing really to test, as I have not added any code, I just ran the steps outlined above and got that message and trying to understand why.

    – Ty Showers
    Mar 25 at 17:53

















  • Need to see my data

    – Pari Baker
    Mar 24 at 17:15











  • This looks like a informational message from ngc. Does the application work? If so, you can ignore this.

    – R. Richards
    Mar 24 at 17:24











  • Pari Baker, there is no data, you have the complete steps above. I did not create any components or modules or add any code to the application. If you follow the steps as outlined above you will get same.

    – Ty Showers
    Mar 25 at 17:51











  • R. Richards, I am just trying to understand how libraries work in Angular 6/7 because I have an Angular 5 application that I plan to port to Angular 7. Again, there is nothing really to test, as I have not added any code, I just ran the steps outlined above and got that message and trying to understand why.

    – Ty Showers
    Mar 25 at 17:53
















Need to see my data

– Pari Baker
Mar 24 at 17:15





Need to see my data

– Pari Baker
Mar 24 at 17:15













This looks like a informational message from ngc. Does the application work? If so, you can ignore this.

– R. Richards
Mar 24 at 17:24





This looks like a informational message from ngc. Does the application work? If so, you can ignore this.

– R. Richards
Mar 24 at 17:24













Pari Baker, there is no data, you have the complete steps above. I did not create any components or modules or add any code to the application. If you follow the steps as outlined above you will get same.

– Ty Showers
Mar 25 at 17:51





Pari Baker, there is no data, you have the complete steps above. I did not create any components or modules or add any code to the application. If you follow the steps as outlined above you will get same.

– Ty Showers
Mar 25 at 17:51













R. Richards, I am just trying to understand how libraries work in Angular 6/7 because I have an Angular 5 application that I plan to port to Angular 7. Again, there is nothing really to test, as I have not added any code, I just ran the steps outlined above and got that message and trying to understand why.

– Ty Showers
Mar 25 at 17:53





R. Richards, I am just trying to understand how libraries work in Angular 6/7 because I have an Angular 5 application that I plan to port to Angular 7. Again, there is nothing really to test, as I have not added any code, I just ran the steps outlined above and got that message and trying to understand why.

– Ty Showers
Mar 25 at 17:53












1 Answer
1






active

oldest

votes


















4














This is caused because you have an external dependency and you need to declare the name used so that the rollup knows what to look for when building the UMD bundle of my-core.



To fix the warning declare your my-data in ng-package.json




"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/my-core",
"lib":
"entryFile": "src/public-api.ts",
"umdModuleIds":
"my-data": "my-data"





I believe this is because since all dependencies are treated as external and your my-data isn't installed through something like npm you need to declare the UMD module id that's expected. See https://github.com/ng-packagr/ng-packagr/blob/master/docs/dependencies.md#resolving-umd-module-identifiers






share|improve this answer























  • That worked! Reading the "Resolving UMD Module Identifiers" I would never have correlated article to the error. Thanks for the info. Not sure how I would have known this, or even known to look for this going from Angular 5 to Angular 7.

    – Ty Showers
    Mar 25 at 17:59











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55326372%2fno-name-was-provided-for-external-module%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














This is caused because you have an external dependency and you need to declare the name used so that the rollup knows what to look for when building the UMD bundle of my-core.



To fix the warning declare your my-data in ng-package.json




"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/my-core",
"lib":
"entryFile": "src/public-api.ts",
"umdModuleIds":
"my-data": "my-data"





I believe this is because since all dependencies are treated as external and your my-data isn't installed through something like npm you need to declare the UMD module id that's expected. See https://github.com/ng-packagr/ng-packagr/blob/master/docs/dependencies.md#resolving-umd-module-identifiers






share|improve this answer























  • That worked! Reading the "Resolving UMD Module Identifiers" I would never have correlated article to the error. Thanks for the info. Not sure how I would have known this, or even known to look for this going from Angular 5 to Angular 7.

    – Ty Showers
    Mar 25 at 17:59















4














This is caused because you have an external dependency and you need to declare the name used so that the rollup knows what to look for when building the UMD bundle of my-core.



To fix the warning declare your my-data in ng-package.json




"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/my-core",
"lib":
"entryFile": "src/public-api.ts",
"umdModuleIds":
"my-data": "my-data"





I believe this is because since all dependencies are treated as external and your my-data isn't installed through something like npm you need to declare the UMD module id that's expected. See https://github.com/ng-packagr/ng-packagr/blob/master/docs/dependencies.md#resolving-umd-module-identifiers






share|improve this answer























  • That worked! Reading the "Resolving UMD Module Identifiers" I would never have correlated article to the error. Thanks for the info. Not sure how I would have known this, or even known to look for this going from Angular 5 to Angular 7.

    – Ty Showers
    Mar 25 at 17:59













4












4








4







This is caused because you have an external dependency and you need to declare the name used so that the rollup knows what to look for when building the UMD bundle of my-core.



To fix the warning declare your my-data in ng-package.json




"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/my-core",
"lib":
"entryFile": "src/public-api.ts",
"umdModuleIds":
"my-data": "my-data"





I believe this is because since all dependencies are treated as external and your my-data isn't installed through something like npm you need to declare the UMD module id that's expected. See https://github.com/ng-packagr/ng-packagr/blob/master/docs/dependencies.md#resolving-umd-module-identifiers






share|improve this answer













This is caused because you have an external dependency and you need to declare the name used so that the rollup knows what to look for when building the UMD bundle of my-core.



To fix the warning declare your my-data in ng-package.json




"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/my-core",
"lib":
"entryFile": "src/public-api.ts",
"umdModuleIds":
"my-data": "my-data"





I believe this is because since all dependencies are treated as external and your my-data isn't installed through something like npm you need to declare the UMD module id that's expected. See https://github.com/ng-packagr/ng-packagr/blob/master/docs/dependencies.md#resolving-umd-module-identifiers







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 24 at 21:52









bniedermeyerbniedermeyer

1035




1035












  • That worked! Reading the "Resolving UMD Module Identifiers" I would never have correlated article to the error. Thanks for the info. Not sure how I would have known this, or even known to look for this going from Angular 5 to Angular 7.

    – Ty Showers
    Mar 25 at 17:59

















  • That worked! Reading the "Resolving UMD Module Identifiers" I would never have correlated article to the error. Thanks for the info. Not sure how I would have known this, or even known to look for this going from Angular 5 to Angular 7.

    – Ty Showers
    Mar 25 at 17:59
















That worked! Reading the "Resolving UMD Module Identifiers" I would never have correlated article to the error. Thanks for the info. Not sure how I would have known this, or even known to look for this going from Angular 5 to Angular 7.

– Ty Showers
Mar 25 at 17:59





That worked! Reading the "Resolving UMD Module Identifiers" I would never have correlated article to the error. Thanks for the info. Not sure how I would have known this, or even known to look for this going from Angular 5 to Angular 7.

– Ty Showers
Mar 25 at 17:59



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55326372%2fno-name-was-provided-for-external-module%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript