Get help with morph.io and scraping

Node.js scrapers failing

I have multiple scrapers failing with

Error: Invalid semantic version "14.x"

for 3 days now.

2 Likes

The problem still exists. I can’t find any project with node.js (for copying the settings) which ran successfully in the last few months.
It seems that there is something wrong in the library, in heroku. This semver spec seems quite clear, but I already tried strings like β€œ12.x”, β€œ16.13.0”, β€œ8.1.0”, β€œ14.x”, β€œ6.x” for the engines.node and engines.npm setting in the package.json. Before this problem, I hadn’t this setting at all in my file.

package.json:

  "engines": {
    "node": "12.x"
  },

Error message:

Injecting configuration and compiling...
e[1G       e[1G-----> Node.js app detected
e[1G       
e[1G-----> Creating runtime environment
e[1G       
e[1G       NPM_CONFIG_LOGLEVEL=error
e[1G       NPM_CONFIG_PRODUCTION=true
e[1G       NPM_CONFIG_CAFILE=/etc/ssl/certs/ca-certificates.crt
e[1G       NODE_VERBOSE=false
e[1G       NODE_ENV=production
e[1G       NODE_TLS_REJECT_UNAUTHORIZED=0
e[1G       NODE_MODULES_CACHE=true
e[1G       
e[1G-----> Installing binaries
e[1G       engines.node (package.json):  12.x
e[1G       engines.npm (package.json):   unspecified (use default)
e[1G       
e[1G       Resolving node version 12.x...
e[1G       Error: Invalid semantic version "12.x"
e[1G       
e[1G-----> Build failed
e[1G       
e[1G       !     Invalid semver requirement
e[1G       
e[1G       Node, Yarn, and npm adhere to semver, the semantic versioning convention
e[1G       popularized by GitHub.
e[1G       
e[1G       http://semver.org/
e[1G       
e[1G       However you have specified a version requirement that is not a valid
e[1G       semantic version.
e[1G       
e[1G       https://kb.heroku.com/why-is-my-node-js-build-failing-because-of-an-invalid-semver-requirement
e[1G       

I even tried creating a new project to see what is the new default, but creating new project hangs with β€œAdd scraper template …”. And even the values from the documentation example are not working:
https://morph.io/documentation/language_version

Update: it even fails with the exact example values from heroku: Why is my Node.js build failing because of an invalid semver requirement? - Heroku Help