vast-client-js icon indicating copy to clipboard operation
vast-client-js copied to clipboard

webpack module not found

Open mdellanave opened this issue 1 year ago • 5 comments

Hi, since I updated to version 6.0.1, webpack is no longer able to build the bundle because of this errors

image

I'm importing VASTClient and VASTracker in this way image

using this settings for webpack with babel

image image

any idea?

mdellanave avatar Sep 30 '24 10:09 mdellanave

Hello what version of webpack are you using ?

ZacharieTFR avatar Sep 30 '24 15:09 ZacharieTFR

image

mdellanave avatar Sep 30 '24 16:09 mdellanave

same here

privaloops avatar Oct 01 '24 14:10 privaloops

I've got the same problem with a player trying to load the lib with dynamic import in a nextjs project. Need to bundle the lib :(

privaloops avatar Oct 01 '24 15:10 privaloops

I've got the same problem with a player trying to load the lib with dynamic import in a nextjs project. Need to bundle the lib :(

I had to do the same in another project for another library and I used rollup, should I use the same approach or do you know if there's a way to do it directly with webpack?

mdellanave avatar Oct 01 '24 17:10 mdellanave

I think I found a way, simply changing the path of the import to this image Now webpack build my project without errors, but I got an error using the function vastClientInstance.getParser().addURLTemplateFilter, I don't know if it's because the breaking changes between 5 and 6 version or it's due to the way I'm importing the VASTClient object, any idea?

mdellanave avatar Dec 11 '24 14:12 mdellanave

Ok found here https://github.com/dailymotion/vast-client-js/blob/c1c8b42f96c2bb695fbc435bf5a2750fb501f6e8/docs/api/vast-client.md#addurltemplatefilterfilter also to fix my other problem, vastClientInstance.addURLTemplateFilter

mdellanave avatar Dec 11 '24 14:12 mdellanave

Hello do you still have the issue ? If that's not the case I will close this issue.

ZacharieTFR avatar Dec 16 '24 16:12 ZacharieTFR

@ZacharieTFR I found a solution so for me you can close the issue. Thank you

mdellanave avatar Dec 16 '24 17:12 mdellanave