Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi there, after updating our project's npm packages according to the

Options
UKHR9UN00
UKHR9UN00 Posts: 70 🧑🏻‍🚀 - Cadet
edited December 2021 in Help

Hi there,
after updating our project's npm packages according to the b2b-demo-shop (which it is based on), we're having issues building Zed:

@import '~bootstrap-sass/assets/stylesheets/bootstrap';
^
      File to import not found or unreadable: ~bootstrap-sass/assets/stylesheets/bootstrap.
      in /data/vendor/spryker/gui/assets/Zed/sass/main.scss (line 11, column 1)

...

@import '~jstree/dist/themes/default/style';
^
      File to import not found or unreadable: ~jstree/dist/themes/default/style.
      in /data/vendor/spryker/file-manager-gui/assets/Zed/sass/main.scss (line 6, column 1)

These are dependencies that are included in the core module's package.json (like https://github.com/spryker/gui/blob/master/assets/Zed/package.json)
From my understanding they should install automatically by running

docker/sdk console frontend:project:install-dependencies

This could be solved by adding the dependencies to our root package.json but I guess this is not how it is supposed to work. 🙂

Any ideas where to look at for this?

We're using:
webpack v4.27.1
spryker/oryx v1.4.0
spryker/oryx-for-zed v2.11.3
spryker/setup-frontend v1.7.0
spryker/gui v3.41.2

Comments

  • U01LE4BMBK7
    U01LE4BMBK7 Posts: 241 🧑🏻‍🚀 - Cadet
    Options

    which nodejs / npm version are you using?

  • UKHR9UN00
    UKHR9UN00 Posts: 70 🧑🏻‍🚀 - Cadet
    Options

    I just found the issue.
    Although deprecated, it's still necessary to call console frontend:zed:install-dependencies .
    I'm not sure if this is a bug in the current spryker/setup-frontend module version.

  • UPDQFGGM9
    UPDQFGGM9 Posts: 29 🧑🏻‍🚀 - Cadet
    Options

    I believe the problem here is that the new command does not resolve vendor dependencies.. if you take a look at the spryker-shop/suite repo you will notice that the package.json contains workspaces now.

    It might be that this is the future way to go.. right now I’m trying exactly this way and it works with the way of installing dependencies.
    But I struggle to build Zed without editing the webpack.config in oryx-for-zed..