Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Salketer opened this issue Dec 19, 2018 · 0 comments
Open

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

Salketer opened this issue Dec 19, 2018 · 0 comments

Comments

@Salketer
Copy link

Salketer commented Dec 19, 2018

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant