Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack module not found #480

Open
mdellanave opened this issue Sep 30, 2024 · 7 comments
Open

webpack module not found #480

mdellanave opened this issue Sep 30, 2024 · 7 comments

Comments

@mdellanave
Copy link

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?

@ZacharieTFR
Copy link
Contributor

Hello what version of webpack are you using ?

@mdellanave
Copy link
Author

image

@privaloops

This comment was marked as off-topic.

@privaloops
Copy link

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 :(

@mdellanave
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants