Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

wt create --bundle throws "invalid semver for module" #237

@Salketer

Description

@Salketer

Hello, I am trying to bundle my first real task. This task has a package.json file that has this dependency:

"piexifjs": "^2.0.0-beta.7"

This returns this error:

Uncaught error:  invalid semver for module piexifjs (2.0.0-beta.007) at '.modules'

I have tried with many different semver but they either are not working because they are not available from NPM, or throw this error.

To me, this is happening because of the padded 0 after the beta part.

From Semantic Versioning 2.0.0

A pre-release version MAY be denoted by appending a hyphen and a series of dot separated identifiers immediately following the patch version. Identifiers MUST comprise only ASCII alphanumerics and hyphen [0-9A-Za-z-]. Identifiers MUST NOT be empty. Numeric identifiers MUST NOT include leading zeroes.

What I don't understand is where those are coming from? They sure are not in my package.json, I even tried looking at my package-lock.json!

EDIT:

node --version
v8.11.3
npm --version
5.6.0
wt --version
11.0.0

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