Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Fix For imports? Style Polyfill #49

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

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/

@nicksp nicksp closed this as completed Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants