akeneo / pim-community-dev

[Community Development Repository] The open source Product Information Management (PIM)
http://www.akeneo.com
Other
950 stars 512 forks source link

Yarn Error 2 installing Akeneo akeneo/pim-community-dev 7.0 #20223

Open joachimVT opened 10 months ago

joachimVT commented 10 months ago

:bug: I'm not able to install PIM community edition 7.0 :bug:

After: make prod

I keep getting this error in step: yarn workspace @akeneo-pim-community/shared lib:build

src/components/NoData.tsx:9:7 - error TS2742: The inferred type of 'NoDataTitle' cannot be named without a reference to 'akeneo-design-system/node_modules/@types/styled-components'. This is likely not portable. A type annotation is necessary.

9 const NoDataTitle = styled.div`
        ~~~~~~~~~~~

src/components/NoData.tsx:16:7 - error TS2742: The inferred type of 'NoDataText' cannot be named without a reference to 'akeneo-design-system/node_modules/@types/styled-components'. This is likely not portable. A type annotation is necessary.

16 const NoDataText = styled.div`
         ~~~~~~~~~~

src/components/page/PageHeader.tsx:86:11 - error TS2769: No overload matches this call.
  The last overload gave the following error.
    Argument of type '{ showPlaceholder: boolean | undefined; }' is not assignable to parameter of type 'Partial<unknown> & Attributes'.
      Object literal may only specify known properties, and 'showPlaceholder' does not exist in type 'Partial<unknown> & Attributes'.

86           showPlaceholder,
             ~~~~~~~~~~~~~~~

  ../../../../../node_modules/@types/react/index.d.ts:326:14
    326     function cloneElement<P>(
                     ~~~~~~~~~~~~
    The last overload is declared here.

src/tests/utils.tsx:12:37 - error TS2322: Type 'React.ReactNode' is not assignable to type 'import("/srv/pim/node_modules/@types/styled-components/node_modules/@types/react/ts5.0/index").ReactNode'.
  Type '{}' is not assignable to type 'ReactNode'.

12     <ThemeProvider theme={pimTheme}>{children}</ThemeProvider>
                                       ~~~~~~~~~~

  ../../../../../node_modules/@types/styled-components/index.d.ts:349:5
    349     children?: React.ReactNode | undefined;
            ~~~~~~~~
    The expected type comes from property 'children' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<ThemeProviderProps<any, any>, any, any>> & Readonly<...>'

Found 4 errors in 3 files.

Errors  Files
     2  src/components/NoData.tsx:9
     1  src/components/page/PageHeader.tsx:86
     1  src/tests/utils.tsx:12
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: /usr/bin/node
Arguments: /usr/share/yarn/lib/cli.js lib:build
Directory: /srv/pim/vendor/akeneo/pim-community-dev/front-packages/shared
Output:

info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: /usr/bin/node
Arguments: /usr/share/yarn/lib/cli.js packages:build
Directory: /srv/pim/vendor/akeneo/pim-community-dev
Output:

info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
make[2]: *** [front-packages] Error 1
make[1]: *** [pim-prod] Error 2
digitalgopnik commented 2 months ago

@joachimVT Did you find a solution already? Or does this problem still exists?

jacq34326562 commented 1 month ago

Hi @digitalgopnik @joachimVT I have the same problem as you and I can't find a solution. Have you managed to solve it?

digitalgopnik commented 1 month ago

Problem still exists...at least on my side