Skip to content

yarn installation not working #4

@brightredchilli

Description

@brightredchilli
  1. Select template project from strapi cloud dashboard, new git repo created
  2. clone git repo
  3. run yarn
  4. run yarn develop

Seeing this error:

/Users/ying/code/strapi-cloud-template-blog-62427afb57/.pnp.cjs:25590
      Error.captureStackTrace(firstError);
            ^

Error: esbuild-register tried to access esbuild (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.

Required package: esbuild
Required by: esbuild-register@virtual:d3e5a4e559404f32ec0da0e491fa623d85d85f20a35f3c1c892457139d2067b39e9c2f33ed8eab4c60de94223348c9d225fb59045dbc77339a60726291e23a11#npm:3.5.0 (via /Users/ying/code/strapi-cloud-template-blog-62427afb57/.yarn/__virtual__/esbuild-register-virtual-6f84446de7/3/.yarn/berry/cache/esbuild-register-npm-3.5.0-d823f64ce0-10c0.zip/node_modules/esbuild-register/dist/)

Ancestor breaking the chain: @strapi/strapi@virtual:b3df3fd93d57879cc7c5858e74560dbd8c76f2e56fe9fe2851c17ad64c5a82e88b93dfdd2c60e30bb6e5f1c93e5c1d470800d7db9ed395ab5a9830a0eb73574b#npm:5.28.0


....

Ran

yarn add -D esbuild
yarn develop

Then got:

Error: Could not load js config file /Users/ying/code/strapi-cloud-template-blog-62427afb57/.yarn/__virtual__/@strapi-content-type-builder-virtual-0e7d694e57/3/.yarn/berry/cache/@strapi-content-type-builder-npm-5.28.0-a64dc50799-10c0.zip/node_modules/@strapi/content-type-builder/dist/server/index.js: 

@strapi/content-type-builder tried to access @strapi/types, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.                                                                                                                                            
Required package: @strapi/types
Required by: @strapi/content-typebuilder@virtual:d3e5a4e559404f32ec0da0e491fa623d85d85f20a35f3c1c892457139d2067b39e9c2f33ed8eab4c60de94223348c9d225fb59045dbc77339a60726291e23a11#npm:5.28.0
(via /.../strapi-cloud-template-blog-62427afb57/.yarn/__virtual__/@strapi-content-type-builder-virtual-0e7d694e57/3/.yarn/berry/cache/@strapi-content-type-builder-npm-5.28.0-a64dc50799-10c0.zip/node_modules/@strapi/content-type-builder/dist/server/)

Ran

yarn add -D @strapi/types
yarn develop

Then got:

Error: Could not load js config file /Users/ying/code/strapi-cloud-template-blog-62427afb57/.yarn/__virtual__/@strapi-review-workflows-virtual-dc95efa00f/3/.yarn/berry/cache/@strapi-review-workflows-npm-5.28.0-1c103f3eef-10c0.zip/node_modules/@strapi/review-workflows/dist/server/index.js: 
@strapi/review-workflows tried to access lodash, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: lodash (via "lodash/fp")
Required by: @strapi/review-workflows@virtual:d3e5a4e559404f32ec0da0e491fa623d85d85f20a35f3c1c892457139d2067b39e9c2f33ed8eab4c60de94223348c9d225fb59045dbc77339a60726291e23a11#npm:5.28.0 (via /.../strapi-cloud-template-blog-62427afb57/.yarn/__virtual__/@strapi-review-workflows-virtual-dc95efa00f/3/.yarn/berry/cache/@strapi-review-workflows-npm-5.28.0-1c103f3eef-10c0.zip/node_modules/@strapi/review-workflows/dist/server/)

It looks like there are unspecified dependencies. I will continue resolving them bit by bit, but is there a missing step here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions