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

Lock karma-webpack to 2.0.6 to resolve 404's running unit tests #26

Merged
merged 1 commit into from
Jan 17, 2018

Conversation

ttamj
Copy link
Contributor

@ttamj ttamj commented Jan 17, 2018

Fixes 404's running Karma unit tests discussed in STRIPES-494.

The cause appears to a defect found in versions of karma-webpack greater than 2.0.6.
codymikol/karma-webpack#289

The 404's may be related to /_karma_webpack_/paths used for the in-memory file system. Comparing the verbose webpack output of my NPM-installed CLI with that of my Yarn-installed CLI, I came across a discrepancy in PublicPath with the Yarn version was pointing to a nonexistent directory in the temporary /var/folders/... path on disk.

As a global NPM install, the existing package-lock.json is respected which happens to have karma-webpack already set at 2.0.6. Once we started using Stripes CLI with ui-eholdings via Yarn, the latest version of karma-webpack was pulled in surfacing this error.

@ttamj ttamj merged commit 7506572 into master Jan 17, 2018
@ttamj ttamj deleted the karma-webpack-fix branch January 18, 2018 19:07
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

Successfully merging this pull request may close these issues.

1 participant