Closed (fixed)
Project:
Olivero
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2020 at 18:04 UTC
Updated:
20 Apr 2020 at 20:04 UTC
Jump to comment: Most recent, Most recent file
I get a few warnings after installing the theme with Yarn in Ubuntu 18.04:
Install Yarn in Ubuntu 18.04:
$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
$ sudo apt update && sudo apt install yarn
$ yarn -v
1.21.1
From https://yarnpkg.com/en/docs/install#debian-stable
Get Olivero theme and enter folder:
$ git clone --branch 8.x-1.x-dev https://git.drupalcode.org/project/olivero.git
$ cd olivero
Install dependencies with Yarn:
$ yarn install
yarn install v1.21.1
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > eslint-plugin-prettier@3.1.1" has incorrect peer dependency "eslint@>= 5.0.0".
warning "stylelint > postcss-html@0.23.7" has incorrect peer dependency "postcss-syntax@^0.10.0".
warning "stylelint > postcss-markdown@0.23.7" has incorrect peer dependency "postcss-syntax@^0.10.0".
warning " > stylelint-order@3.1.1" has incorrect peer dependency "stylelint@>=10.0.1".
[4/4] Building fresh packages...
Done in 6.25s.
It works fine, and after disabling Drupal caching, running yarn run watch:css changes to the template files result in new CSS-files automatically. But as you can see I get some warnings like info fsevents@1.2.9: The platform "linux" is incompatible ... as well as stylelint and eslint, perhaps because I am using Ubuntu? Current set up:
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 3105437-13-yarn-warnings-full.patch | 338.55 KB | mherchel |
| #13 | 3105437-13-yarn-warnings-no-dist.patch | 273.61 KB | mherchel |
| #10 | 3105437-10.patch | 535.99 KB | kostyashupenko |
Comments
Comment #2
ressaEDIT: I updated the issue to revolve around yarn in stead of npm, after the Olivero project was moved from Github to drupal.org. I found the issue fsevents@1.1.3: The platform "linux" is incompatible with this module which seems relevant
Original npm issue comment: I found the npm issue Log failed optional platform dependencies as info, hopefully this will get fixed soon.
Comment #3
ressaUpdated from npm to yarn.
Comment #4
ressaComment #5
ressaComment #6
mherchelComment #7
ressaI still get these warnings ...
Comment #8
mherchelComment #9
ressaComment #10
kostyashupenko1. Some packages were updated based on d9 core https://git.drupalcode.org/project/drupal/-/blob/9.0.x/core/package.json
2. Removed package-lock.json
3. Executed
yarn build:css && yarn build:jscommands to recompile styles/scripts based on new packagesHere is a list of updated files (updates at compiled css are related to autoprefixer around background: linear-gradient):
On my side no warnings/errors anymore during
yarn installComment #11
ressaThanks @kostyashupenko, it's much better! I still get a single warning about
fsevents:Comment #12
kostyashupenko@ressa I guess during development it's ok to have this warning about
fsevents, sincefseventsis a dependency of https://www.npmjs.com/package/chokidar , andchokidaris a dependency of https://www.npmjs.com/package/postcss-cli.We use
postcss-clipackage in our scripts like here https://git.drupalcode.org/project/olivero/-/blob/8.x-1.x-dev/package.js...Drupal core is not using that package and it has own scripts to build postcss https://git.drupalcode.org/project/drupal/-/blob/9.0.x/core/scripts/css/...
So for now it's ok like this, @mherchel what do you think?
Comment #13
mherchelRe-rolling and committing. I'm attaching a patch without the dist files, and one with the dist files.
Thanks @kostyashupenko!
Note the only warning that I got (on a macbook) is
Comment #14
mherchelI'm going to commit this. If there's still issues, please open up a followup. Thanks!