Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
joachimVT opened this issue Aug 30, 2023 · 3 comments
Open

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

joachimVT opened this issue Aug 30, 2023 · 3 comments

Comments

@joachimVT
Copy link

joachimVT commented Aug 30, 2023

馃悰 **I'm not able to install PIM community edition 7.0 ** 馃悰

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
Copy link

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

@jacq34326562
Copy link

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

@digitalgopnik
Copy link

digitalgopnik commented May 14, 2024

Problem still exists...at least on my side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants