Ivy compiled node module not able to upload to nexus - Sonatype Nexus Repository - Sonatype Community

Ivy compiled node module not able to upload to nexus

post by singhsubham58 on Mar 11, 2024

Hello, I have a node-angular project which is compiled from ivy compiler and I want to upload it to my self-hosted Nexus repository. I have done the prerequisite for setting up the repository and user. When I build the code and try to upload the tgz to Nexus it throws an error

npm publish

> authwidget@1.2.9 prepublishOnly .
> node --eval "console.error('ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed.\nPlease delete and rebuild the package, without compiling with Ivy, before attempting to publish.\n')" && exit 1

ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed.
Please delete and rebuild the package, without compiling with Ivy, before attempting to publish.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! authwidget@1.2.9 prepublishOnly: `node --eval "console.error('ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed.\nPlease delete and rebuild the package, without compiling with Ivy, before attempting to publish.\n')" && exit 1`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the authwidget@1.2.9 prepublishOnly script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/shubhamsingh/.npm/_logs/2024-03-11T09_48_39_761Z-debug.log```

post by mpiggott on Mar 11, 2024

This isn’t an issue with Nexus this is a local issue with your build.