Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Warning, the following targets are using a decimal version #45

Open
archae0pteryx opened this issue Aug 4, 2017 · 2 comments
Open

Warning, the following targets are using a decimal version #45

archae0pteryx opened this issue Aug 4, 2017 · 2 comments

Comments

@archae0pteryx
Copy link

I just installed via yarn and i'm getting this warning in my console:

Warning, the following targets are using a decimal version:

  electron: 1.6

We recommend using a string for minor/patch versions to avoid numbers like 6.10
getting parsed as 6.1, which can lead to unexpected behavior.

I'm not seeing any quick resolutions via the google. Call me OCD but i'd prefer not to have a warning when i fire up my badass electron-prebuilt-compile based app. How do i go about "using a string for minor/patch versions" ? It seems to me that the version is already a string in my package.json. What don't i know here.

Thanks ya'll

@ddavidebor
Copy link

Same! Annoying

@timfish
Copy link
Contributor

timfish commented Oct 16, 2017

This is coming from .compilerc:

"env",
{
  "targets": {
    "electron": 1.7
  }
}

Simply make the version a string:

"electron": "1.7"

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

No branches or pull requests

3 participants