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 with electron-renderer target imports non-browser-wrapped version #147

Closed
greegus opened this issue May 25, 2017 · 0 comments
Closed

Comments

@greegus
Copy link

greegus commented May 25, 2017

I'm trying to use the library in my electron project (compiled with webpack, target set to electron-renderer), but it seems that the node module is being imported instead of browser-ready-wrapped one – as calling musicmetadata(file, (e, data) => {...}) (where file is a File object) ends up with TypeError: stream.pipe is not a function.

Is this intentional? Or could the library be altered to be served as browser module for this environment? Or eventually, could this be achieved by some webpack.config.js tricks (not a webpack heavy user)?

@greegus greegus changed the title Webpack with electron-renderer target imports non-browser-wrapper version Webpack with electron-renderer target imports non-browser-wrapped version May 25, 2017
@greegus greegus closed this as completed Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant