1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Webpack module federation - Error: Unsatisfied version 0.20.3 from xxxxx of shared singleton...

Discussão em 'Angular' iniciado por thulasi39, Outubro 8, 2024.

  1. thulasi39

    thulasi39 Guest

    In our Angular project we were using xlxs package version of 0.18.5, as it has the vulnerability from the checkmarxOne, found the registry got changed for the xlsx package. Replaced the version of "0.20.3" mentioning the below url in the package.json - https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz

    [​IMG]

    After this change, I am unable to download the Excel report from the application, I am getting the the error in the developer tools like below.

    Error: Unsatisfied version 0.20.3 from xxxxx of shared singleton module xlsx (required =0.20.3/xlsx-0.20.3.tgz). Then I updated the below entry in the webpack.config.js. It's working for few micro frontend but not all.

    [​IMG]

    I validated few times in the webpack.config.js, initally i updated the requiredversion: 0.20.3 then later changed to "0.20.3/xlsx-0.20.3.tgz". Still I am getting the same error. I don't want to keep strictVersion: false in the webpack.config.js. Any solution for this? Thanks in advance.

    The error in the developer tools is below in the screenshot.[​IMG]

    Continue reading...

Compartilhe esta Página