Skip to content

Runtime Error: period in repository name in elm-package.json #1597

@mdgriffith

Description

@mdgriffith

A project will build but fail at runtime with Uncaught SyntaxError: Unexpected token . if the repository name contains a period such as https://github.com/mdgriffith/elm.style.git

So, any project that uses this elm-package.json:

{
    "version": "1.0.0",
    "summary": "The elm.style website",
    "repository": "https://github.com/mdgriffith/elm.style.git",
    "license": "BSD3",
    "source-directories": [
        "."
    ],
    "exposed-modules": [
    ],
    "dependencies": {
        "elm-lang/core": "5.0.0 <= v < 6.0.0",
        "elm-lang/html": "2.0.0 <= v < 3.0.0"
    },
    "elm-version": "0.18.0 <= v < 0.19.0"
}

Versions

  • elm 0.18
  • OS: OSX 10.11.6, El Capitan
  • Browser: Chrome, Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions