Skip to content

Importing module Follow Redirects fails #26

@socialweb-iaraya

Description

@socialweb-iaraya

I've installed follow-redirects using these two npm commands:

npm i follow-redirects
npm install @types/follow-redirects

I've imported it inside video-player.js like this:

import { http, https } from 'follow-redirects';

However if I run the demo application it doesn't run and returns the following error:

GET http://localhost:1337/modules/follow-redirects net::ERR_ABORTED 404 (Not Found)

I'm trying to figure out if this is a zombiebox problem, a follow-redirects issue or if I am doing something wrong.

The terminal shows the following error, which I'm unable to trace so I'm thinking it's generated by zombiebox itself:

Can't resolve aliased module path follow-redirects
Referrer: modules/demo/scenes/video-player/video-player

I need this library to solve url redirects before feeding the final url to the videoplayer, which cannot handle redirects on its own.

Thanks.

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