zombiebox icon indicating copy to clipboard operation
zombiebox copied to clipboard

Importing module Follow Redirects fails

Open socialweb-iaraya opened this issue 3 years ago • 0 comments

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.

socialweb-iaraya avatar Sep 15 '22 18:09 socialweb-iaraya