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.

Build fails after upgrade to v14.2.1

See original GitHub issue

Current Behavior

Library build fails after migration from v13 to v14.

ts-node is a dependancy of β€œ@nrwl/angular”. I don’t know if it is is related to the error log.

Expected Behavior

Build passes

Steps to Reproduce

  1. Migrate to v14
  2. build library

Failure Logs

$ nx build shared-chat

Γ— 1/1 dependent project tasks failed (see below)

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”

nx run shared-environments:build:development

Building Angular Package


Building entry point β€˜@safesante/chat’

βœ– Compiling with Angular sources in Ivy full compilation mode. Debug Failure. False expression: Non-string value passed to ts.resolveTypeReferenceDirective, likely by a wrapping package working with an outdated resolveTypeReferenceDirectives signature. This is probably not a problem in TS itself.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”

NX Ran target build for project shared-chat and 4 task(s) it depends on (11s)

Γ—    1/4 failed
√    3/4 succeeded [0 read from cache]

Environment

  • Windows 11
  • VSCode
  • Angular
  • NX

NX Report complete - copy this into the issue template

Node : 14.17.3 OS : win32 x64 npm : 6.14.13

nx : 14.2.1 @nrwl/angular : 14.2.1 @nrwl/cypress : 14.2.1 @nrwl/detox : Not Found @nrwl/devkit : 14.2.1 @nrwl/eslint-plugin-nx : 14.2.1 @nrwl/express : Not Found @nrwl/jest : 14.2.1 @nrwl/js : 14.2.1 @nrwl/linter : 14.2.1 @nrwl/nest : Not Found @nrwl/next : Not Found @nrwl/node : Not Found @nrwl/nx-cloud : 14.0.5 @nrwl/nx-plugin : Not Found @nrwl/react : Not Found @nrwl/react-native : Not Found @nrwl/schematics : Not Found @nrwl/storybook : 14.2.1 @nrwl/web : Not Found @nrwl/workspace : 14.2.1 typescript : 4.7.3

Community plugins: @ng-bootstrap/ng-bootstrap: 11.0.1 @nguniversal/builders: 13.1.0 @nguniversal/express-engine: 13.1.0 ng2-charts: 3.0.9 ngx-store: 3.1.1 @compodoc/compodoc: 1.1.19 @storybook/angular: 6.5.5 @trumbitta/nx-plugin-unused-deps: 1.10.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
capJavertcommented, Jul 27, 2022

I had the same error on nx@14.4.3, it was due to "tsPlugins": ["@nestjs/swagger/plugin"] line in my project.json. Based on this https://stackoverflow.com/questions/72488958/false-expression-non-string-value-passed-to-ts-resolvetypereferencedirective I downgraded typescript to 4.6.4 (latest 4.6.x) release and the error was gone. FYI @Coly010

0reactions
Coly010commented, Jun 10, 2022

No problem, so it was an invalid config value.

I’ll close this issue as there isn’t much we can do for this, but hopefully, the information in this ticket helps others solve it just as you have! πŸ˜ƒ

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading Angular project from 9.1.12 to 14.0.6 have build issue
After upgrading the angular project from 9.1.12 to 14.0.6 this is the error I see after building the project by running npm run...
Read more >
NETSDK1045: The current .NET SDK does not support 'newer ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >
BIG-IP 14.1.2.1 Fixes and Known Issues - AskF5 - F5 Networks
Workaround: None. Fix: Mirror connections no longer disconnect during a failover. 811333-2 : Upgrade fails when SSLv2 cipher is in the cipherΒ ...
Read more >
Nautilus - Ceph Documentation
nautilus: qa: use normal build for valgrind (pr#39584, Sage Weil). nautilus: rados/upgrade/nautilus-x-singleton fails due to cluster [WRN] evictingΒ ...
Read more >
Solved: ISE 2.1 to 2.3 failed - Cisco Community
Having said all that, I have just had a disaster after disaster with the upgrade process. I had a similar problem to yours....
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