Error when flattening the source-map of angular-instantsearch with ngcc (angular 9)
See original GitHub issueDescribe the bug š
We are currently trying to update our angular to the angular 9.0.5 version.
However, it looks like angular 9 is not able to compile the lib angular-instantsearch. Here are the logs:
⯠npx ngcc
Warning: Entry point 'angular-instantsearch' contains deep imports into './node_m
odules/algoliasearch/lite', './node_modules/instantsearch.js/es', './node_modules/instantsearch.js/es/connectors', './ngx-web/node_modules/a
lgoliasearch/index', './node_modules/querystring-es3/encode'. This is probably no
t a problem, but may cause the compilation of entry points to be out of order.
Compiling angular-instantsearch : fesm5 as esm5
Compiling angular-instantsearch : esm2015 as esm2015
Compiling angular-instantsearch : fesm2015 as esm2015
Compiling angular-instantsearch : esm5 as esm5
Compiling angular-instantsearch : main as umd
Error: Error when flattening the source-map "./node_modules/angular-instantsearch
/bundles/angular-instantsearch.umd.js.map" for "./node_modules/angular-instantsea
rch/bundles/angular-instantsearch.umd.js": TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received null
To Reproduce š
Steps to reproduce the behavior:
npx @angular/cli@9.0.5 new project
cd project
npm i --save angular-instantsearch@latest
npx ngcc
Expected behavior š
The build pass.
Environment:
- OS: Mac OS Sierra
- Version: angular-instantsearch 2.3.0, angular 9.0.5
Issue Analytics
- State:
- Created 3 years ago
- Comments:28 (13 by maintainers)
Top Results From Across the Web
Warning: Unable to fully load /node_modules/ag-grid-angular ...
I am using ag-grid-community version 22.1.0. Warning: Unable to fully load /node_modules/ag-grid-angular/main.js for source-map flattening:Ā ...
Read more >Error when update angular-instantsearch to v4 and angular ...
Hi there! I had a working version of angular-instantsearch v3 on angular 9, try to update to angular 11 and for that also...
Read more >NG6999: Invalid @NgModule() metadata - Angular
This error represents the import or export of an @NgModule() that doesn't have valid metadata. ... The library might have been processed with...
Read more >JavaScript Debugging with Sourcemaps - TrackJS
With the proliferation of JavaScript transpilers, sourcemaps have become an integral part of the front-end development. If you're using Angular 2, React,Ā ...
Read more >What's new with Angular 9? - AnAr Solutions Pvt. Ltd.
In earlier version, it just prompted an error but now you can completely automate cleaning of outdated artifacts from a whole package using...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I donāt think youāre correctly following the steps mentioned:
git clone https://github.com/doliG/ais-bug && cd ais-bug && npm i
My complete log is here: https://hastebin.com/elotuboguz.coffeescript
On line 134:
I think youāve missed the error because npm/yarn still output things after errorāing. Re-running ngcc will not throw an error though, and thatās why you didnāt see it.
I have tried with Angular 13 and it seems to work. Iāve tried:
Ant result is:
Can this warning cause some problems? I have an Angular 13 application, with this dependency, and itās throwing a
JIT compiler unavailable
error that Iām not sure whether is related to this warning.