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

Error: Argument at index 1 of UMD factory call is not a require call with a single string argument. When running npm install #314

Open
mackelito opened this issue Dec 9, 2021 · 1 comment

Comments

@mackelito
Copy link

mackelito commented Dec 9, 2021

First running

npm install leaflet
npm install @asymmetrik/ngx-leaflet

and then

npm i

gives me the following error..

Error: Argument at index 1 of UMD factory call is not a `require` call with a single string argument:
factory(require('@angular/core'),exports, require('@angular/core'), require('leaflet'))

If I then remove @asymmetrik/ngx-leaflet, installation works just fine..

@reblace
Copy link
Contributor

reblace commented Feb 21, 2022

I just published a new version of the library that's compatible with Angular 13. As part of the new version, I migrated to use the ng-packagr build pipeline for libraries. So, check it out and see if it resolves your issue. If not, provide more details (versions, build system, etc.) and maybe someone can help out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants