Need help troubleshooting an error while building my project. Can't find much information online to resolve this issue. I am using typescript 4.2.4
I can't locate the classnames/index.d.ts file in any directory, so I'm unable to make any changes to it.
Is this possibly due to incorrect versions installed or a logic problem?
[48:02.5] type checking completed in 12.00 seconds
[ ERROR ] TypeScript: node_modules/classnames/index.d.ts:13:13
Type alias 'Argument' is circularly referencing itself.
Line 12: export type Mapping = { [key: string]: any };
Line 13: export type Argument = Value | Mapping | Argument[];
[48:02.5] build failed in 12.14 seconds
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f19b9d9ddc98819db1c1dfc1dfc0">[email protected]</a> stencil:build: `stencil build --docs`
npm ERR! Exit status 1
npm ERR!
npm ERR! The script <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1a70767637736a765a2a342a342b">[email protected]</a> stencil:build has failed.
npm ERR! It's likely not an npm issue. There may be more logs above.
npm ERR! Log for this run is available at:
npm ERR! /Users/eduardo.gc/.npm/_logs/2021-05-18T15_48_02_641Z-debug.log
Rendering Complete, CSS file saved...
CSS written to /Users/eduardo.gc/Desktop/git/property-listings/ui.apps/src/main/content/jcr_root/etc/designs/global-property-listings/ipl.css
Source Map saved to /Users/eduardo.gc/Desktop/git/property-listings/ui.apps/src/main/content/jcr_root/etc/designs/global-property-listings/ipl.css.map
ERROR: "stencil:build" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b3d9dfdf9edac3dff3839d839d82">[email protected]</a> build:js: `npm-run-all stencil:build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fd979191d0948d91bdcdd3cdd3cc">[email protected]</a> build:js script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/eduardo.gc/.npm/_logs/2021-05-18T15_48_03_571Z-debug.log
ERROR: "build:js" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="650f0909480c150925554b554b54">[email protected]</a> build: `npm-run-all -p build:*`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0b61676726627b674b3b253b253a">[email protected]</a> build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/eduardo.gc/.npm/_logs/2021-05-18T15_48_03_678Z-debug.log
[ERROR] An error occurred during command execution.
org.apache.commons.exec.ExecuteException: Process terminated with an error: 1 (Exit code: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166)
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:804)
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:751)
at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:313)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)