Skip to Content
Back

es6-features-overview

 — #ES6#Javascript

Introduction to commonly used ES6 features

JavaScript has progressed a ton in the recent years. If you’re learning JavaScript in 2019 and you haven’t touched ES6, you’re missing out on an easier way to read and write JavaScript. es6 picture Don’t worry if you’re not a master at JavaScript yet. You don’t need to be awesome at JavaScript to take advantage of the added bonuses ES6 gives you. In this article, I want to share with you eight ES6 features I use daily as a developer to help you ease into the new syntax

bin/composer
#!/bin/bash
docker-compose exec -w /var/www/html/wp-content/themes/skela wordpress composer "$@"

When trying to run this script via ./bin/composer install, I got this error in my terminal:

ERROR: Setting workdir for exec is not supported in API < 1.35 (1.30)

The error was coming from the -w flag in the docker-compose exec command in the composer script.

Solution

Turns The fix was to update the version in my docker-compose.yml file to from version 3.5 to 3.6. It's strange because 3.5 isn't anywhere close to the API version 1.35 from the error message 🤷‍♀️

docker-compose.yml
version: '3.6'services:
  wordpress:
    build: