Open alagane opened 2 years ago
Possible fix: Remove the file restriction on package.json on jmap-client-ts (instead on using only lib) Using a postinstall script on jmap-client-ts to build the project Adding typescript dependency to esn-frontend-inbox to be able to build jmap-client-ts with the correct version
The problems is the prepare script of jmap-client-ts is not run, this is clearly a npm bug Tried with npm 7.24.2 with different node versions :
When building for production, or with Jenkins, there is an error. It might be linked to https://github.com/linagora/jmap-client-ts The jmap-client-ts directory inside node_modules does not contain the lib directory on production.
I was not able to reproduce the error locally, using the same npm 6.14.6 and node 12.18.3. Locally the jmaps-client-ts directory contains the lib directory.