Critical dependency warning

I’m using servicestack typescript client in my angular frontend project

I’m upgrading angular to the last release (v20) and I would like to understand how to remove the following warning I get when I build the app

image

the SS typescript client version is 2.0.17 but I get the error also with version 2.1.11

the setting allowedCommonJsDependencies does not help

the build command is

ng build --project=connessioni-reshaped --output-path=setup/it/connessioni --aot --base-href=/html/it/connessioni/ --configuration=production

thanks

I’ve upgraded all the angular-spa template npm packages to Anuglar v20 which builds without this issue:

The issue is likely the Inspect.vars() method which uses dynamic imports which has been removed in this commit.

It’s only used in some node server gist.cafe scripts which doesn’t look like it’s being used anymore so is safe to remove.

You should be able to upgrade the client to remove the warning:

$ npm @servicestack/client@latest