Upgrade leads to 'Cannot augment module 'xxxx' with value exports because it resolves to a non-module entity
See original GitHub issueIf I run tsc --noEmit --incremental false
I get a long list of Cannot augment...
error messages.
Everything was fine with 2.10.0 but fails now with 2.11.0
...
node_modules/date-fns/typings.d.ts:15311:9 - error TS2649: Cannot augment module 'ro' with value exports because it resolves to a non-module entity.
15311 const ro: Locale
~~
node_modules/date-fns/typings.d.ts:15314:9 - error TS2649: Cannot augment module 'ru' with value exports because it resolves to a non-module entity.
15314 const ru: Locale
~~
node_modules/date-fns/typings.d.ts:15317:9 - error TS2649: Cannot augment module 'sk' with value exports because it resolves to a non-module entity.
...
Issue Analytics
- State:
- Created 3 years ago
- Reactions:14
- Comments:18 (2 by maintainers)
Top Results From Across the Web
How to fix date-fns errors after package upgrade in Angular ...
Error message: Cannot augment module 'xxxx' with value exports because it resolves to a non-module entity. angular · node-modules · date-fns ...
Read more >Troubleshoot Azure IoT Edge common errors - Microsoft Learn
Use this article to identify and resolve common issues when using IoT Edge solutions. If you need information on how to find logs...
Read more >Learning the Basics - Gradle User Manual
If Gradle finds a module descriptor in a particular repository, it will attempt to download all of the artifacts for that module from...
Read more >Overview - TypeScript
To allow differentiation between returned values and yielded values, ... But non-module global scripts cannot access types declared in modules.
Read more >Bug listing with status RESOLVED with resolution TEST ...
Bug:233 - "Emacs segfaults when merged through the sandbox. ... "pppd cannot find ppp as a module in kernel 2.6.x" status:RESOLVED resolution:TEST-REQUEST ...
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
Still struggling with this lib.
One thing that helps is:
If yarn show multiple versions of date-fns you are f… Make sure you have the same version of date-fns for all!!! you packages
@dkozickis Can you please reopen this issue. As you can see the problem still exists. I tried it with 2.15.0 + 2.16.1 always the same problem. Only downgrading to 2.11.1. helps
I use date-fns in several modules. In some 2.16.1 works in others it fails. Works with 2.16.1
Works only with 2.11.1
In both modules I remove unnecessary locales with