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

Fix For imports? Style Polyfill #49

Open
JohnPucciarelli opened this issue Mar 7, 2017 · 0 comments
Open

Fix For imports? Style Polyfill #49

JohnPucciarelli opened this issue Mar 7, 2017 · 0 comments

Comments

@JohnPucciarelli
Copy link

JohnPucciarelli commented Mar 7, 2017

I tried adding firebase to this boilerplate and got the following error when fetch was called.

Can't resolve 'imports?this=>global' in '.../node_modules/firebase'

I believe the offending line is here:
https://github.com/nicksp/redux-webpack-es6-boilerplate/blob/master/config/webpack.config.base.js#L27

Installing imports-loader and exports-loader resolved the issue. I.e.

npm i imports-loader exports-loader -D

I found this solution here:
http://mts.io/2015/04/08/webpack-shims-polyfills/

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