Skip to content
This repository was archived by the owner on Jun 19, 2018. It is now read-only.

Update to README to use env.phase #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rossmc
Copy link
Contributor

@rossmc rossmc commented May 14, 2018

Came across the bellow error after following the README while attempting to create my own version of Venia to get more familiar with these tools.

BuildpackValidationError: ServiceWorkerPlugin: Invalid configuration object. ServiceWorkerPlugin was called with a configuration object that has the following problems:
	- env.phase must be of type string

So I've changed the README to instruct devs to use env.phase rather than env.mode. Seems to be the same as what the ServiceWorkerPlugin README advises...

env.phase: String (Required) Must be either 'development' or 'production'.

… to create my own version of Venia to get more familiar with these tools)

```
BuildpackValidationError: ServiceWorkerPlugin: Invalid configuration object. ServiceWorkerPlugin was called with a configuration object that has the following problems:
	- env.phase must be of type string
```

So I've changed the README to instruct devs to use  `env.phase` rather than `env.mode`.  Seems to be the same as the [ServiceWorkerPlugin README](https://github.com/magento-research/pwa-buildpack/blob/master/docs/ServiceWorkerPlugin.md) advises...

> env.phase: String (Required) Must be either 'development' or 'production'.
@DrewML
Copy link
Contributor

DrewML commented Jun 13, 2018

Thanks @rossmc, and apologies for not getting to this PR sooner. We just moved all the contents of this repository and others to our new monorepo. We'll make sure to address these updates in the new repo.

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

Successfully merging this pull request may close these issues.

2 participants