Skip to content

loadModel from url doesn't work in Node #410

Closed
@dsmilkov

Description

@dsmilkov

(Reported by another user (which is why I don't have the stack trace))

loadModel with a url path doesn't work in Node. This is most likely related to fetch missing in node. We should detect the environment and use node's built-in HTTP, or conditionally import node-fetch when we are not in the browser.

cc @nsthorat, @tafsiri for ideas on node <--> browser interop.

Metadata

Metadata

Assignees

Labels

comp:coreduplicateThis issue or pull request already exists

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions