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.

Angular 14 deepmerge warning

See original GitHub issue

Versions ngrx-store-localstorage 14.0.0 Angular 14.0.5

Warning: /Users/user/myproject/node_modules/ngrx-store-localstorage/fesm2020/ngrx-store-localstorage.mjs depends on 'deepmerge'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:11
  • Comments:5

github_iconTop GitHub Comments

1reaction
dmitrydutincommented, Sep 4, 2022

Similar problem with angular 14.2.0

Warning: ...\node_modules\ngrx-store-localstorage\fesm2020\ngrx-store-localstorage.mjs depends on 'deepmerge'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
0reactions
BBlackwocommented, Oct 13, 2022

There are two options to fix this:

  1. Disable the warning https://angular.io/guide/build#configuring-commonjs-dependencies
    • Straightforward. Anyone is free to raise a PR with that change.
  2. Move to another library which uses ESModules
    • More risky and will need a lot of testing
    • This library already moved from lodash to deepmerge in 2019 #126
    • Is there a better library than deepmerge that uses ESModules?
Read more comments on GitHub >

github_iconTop Results From Across the Web

"file path" \node_modules\ngx-translate-multi-http-loader\dist ...
its a micro-frontend angular project using mfe(module ... recently i upgraded my project from angular 13 to 14 and causes some warning like ......
Read more >
Having trouble importing deepmerge with Webpack · Issue #87
When importing with import merge from deepmerge;, the app works fine, ... Adding warning about bug in Webpack #100 ... 1:0-29 11:9-14 ...
Read more >
deepmerge - npm
A library for deep (recursive) merging of Javascript objects. Latest version: 4.2.2, last published: 3 years ago. Start using deepmerge in ...
Read more >
ngrx-store-localstorage - Bountysource
Angular 14.0.5. Warning: /Users/user/myproject/node_modules/ngrx-store-localstorage/fesm2020/ngrx-store-localstorage.mjs depends on 'deepmerge'.
Read more >
Merge translations into the application - Angular
Report missing translationslink. When a translation is missing, the build succeeds but generates a warning such as Missing translation for message "{ ...
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