redbadger / website-next

DEPRECATED incarnation of Red Badger company site
https://redbadger.github.io/website-next/
6 stars 2 forks source link

Fix for Order in extracted chunk undefined webpack errors #198

Closed asavin closed 8 years ago

asavin commented 8 years ago

tumblr_inline_oa9ioezulm1raprkq_500

Motivation

Referencing same icons/style.css from multiple components results in webpack throwing following errors:

ERROR in ./src/shared/components/icons/style.css
Order in extracted chunk undefined

This is an attempt to fix the issue. It is not elegant, but it works. It seems that referencing same chunks of a module from different parts of the app creates this webpack error. It is confusing.

AndrewBestbier commented 8 years ago

Failing builds?

Error: Cannot find module 'generate-object-property'
asavin commented 8 years ago

@AndrewBestbier pushed a fix. The issue is that phantomjs-prebuilt package fails to install as part of normal npm i process, but installs just fine when run separately.

AndrewBestbier commented 8 years ago

Cool :) Well, looks good to me.