question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No name was provided for external module

See original GitHub issue

Type of Issue

[ ] Bug Report
[ ] Feature Request
[x] Not sure :-)

Description

Once I upgraded to 2.2.0 I started seeing this error and I have tried so many things… any help would be greatly appreciated.

No name was provided for external module ‘commonjs-proxy:jquery’ in options.globals – guessing ‘require$$0’

I have the following ng-package.json defined:

{
  "$schema": "./node_modules/ng-packagr/ng-package.schema.json",
  "lib": {
    "entryFile": "public_api.ts",
    "embedded": ["ng-fullcalendar", "fullcalendar"],
    "umdModuleIds": {
      "jquery": "$",
      "moment": "moment",
      "commonjs-proxy:jquery": "$"  // Tried with this in and out
    }
  },
  "whitelistedNonPeerDependencies": ["."]
}

It seems like it’s an issue with the “fullcalendar” (https://github.com/fullcalendar/fullcalendar). It is compiled with webpack and looking at the dist file - it seems like it should work with rollup. Though I always get confused on the different bundling methods.

How To Reproduce

I will edit this with reproducing steps and will look at if it’s possible to break an integration test. Just thought I would put this out there first in case it’s something really obvious.

Version Information

$ node_modules/.bin/ng-packagr --version
ng-packagr:            2.4.1
@angular/compiler:     5.2.9
@angular/compiler-cli: 5.2.9
rollup:                0.55.5
tsickle:               0.27.2
typescript:            2.5.3

Please include all version numbers that might be relevant, e.g. third-party libraries

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
codeNoobiecommented, Apr 5, 2018

@dherges @tommck I am new to using ng-packagr. I am getting the above errors as well.

I have declared a bunch of external libraries as peerDependencies. I do not want to include any code from third party in our bundle. But when i run ng-packagr, I get these errors. What does these errors mean? Is it trying to include the code from the third party libs and it would exactly do that if add those libs in the external array.

My goal is to not include anything from third party lib. The consumer of my lib will have to provide those external libs to make it work. What am i missing?

Thanks in advance for helping!

0reactions
github-actions[bot]commented, Jun 19, 2020

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No name was provided for external module - Stack Overflow
This is caused because you have an external dependency and you need to declare the name used so that the rollup knows what...
Read more >
No name was provided for external module 'xxx' in output ...
Usually you get this error by importing external modules / library in your library. cheers flash ⚡. But this warning not only if...
Read more >
How to Bundle JavaScript With Rollup — Step-by-Step Tutorial
node_modules/.bin/rollup -c Treating 'debug' as external dependency No name was provided for external module 'debug' in options.globals – guessing 'debug'.
Read more >
Witold Kupś - nrwl-nx/community - Gitter
WARNING: No name was provided for external module '@integration/application-integrator/route-application-integrator.module' in output.globals – guessing ...
Read more >
Angular9: No name was provided for external module 'xxx' in ...
报错解决Angular9在build library的时候会报一下警告WARNING: No name was provided for external module '@progress/kendo-angular-dateinputs' in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found