You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we have started using axios-retry library in our project and immediately from start we have faced multiple issues caused by missing version in the ESM package.json folder.
All of the issues are related to the same missing version issue and all of them come from webpack from different places.
The first issue comes from module federation. Webpack is not able to determine the version properly because it is missing so it treats it as version 0, which results in the following error:
Temporary solution:
We were able to solve it by specifying the version directly in module federation config into the shared section.
The second issue comes from NX webpack, where it is also trying to determine the proper version of module used in a library.
It is just a warning about missing version but still we are trying to not have any of these warnings in production code.
Temporary solution:
We added the version specifically into the peerDeps of the library, which solved the issue.
Another one is again just a warning
We would like to ask you kindly if you could start putting the version into the package.json files in the cjs and esm folders to avoid these issues in the future, since the modifications required to the configuration by consumer are completely unnecessary.
We have tried manually adding the version into the package.json file and it did fix all issues
Thank you, with best regards,
Jakub
The text was updated successfully, but these errors were encountered:
Hello,
we have started using axios-retry library in our project and immediately from start we have faced multiple issues caused by missing version in the ESM package.json folder.
All of the issues are related to the same missing version issue and all of them come from webpack from different places.
The first issue comes from module federation. Webpack is not able to determine the version properly because it is missing so it treats it as version 0, which results in the following error:
Temporary solution:
We were able to solve it by specifying the version directly in module federation config into the shared section.
The second issue comes from NX webpack, where it is also trying to determine the proper version of module used in a library.
It is just a warning about missing version but still we are trying to not have any of these warnings in production code.
Temporary solution:
We added the version specifically into the peerDeps of the library, which solved the issue.
Another one is again just a warning
We would like to ask you kindly if you could start putting the version into the package.json files in the cjs and esm folders to avoid these issues in the future, since the modifications required to the configuration by consumer are completely unnecessary.
We have tried manually adding the version into the package.json file and it did fix all issues
Thank you, with best regards,
Jakub
The text was updated successfully, but these errors were encountered: