Skip to content

Define node compatibility #14

Closed
@aske02

Description

@aske02

Node compatibility should be defined in package.json due to scraper.ts using a node >18.0.0 feature global.fetch.
As node 16.x is still used by some people, it could create confusion.
Due to the error not being so detailed when global.fetch is not defined.
The error:

ArgumentError {
  name: 'ArgumentError',
  message: 'fetch must be a function'
}

The suggestion is to add the following to the package.json

"engines": {
	"node": ">=18.0.0"
  },
"engineStrict": true

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions