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

Extract-text-webpack-plugin v1 -> v2 #6248

Closed
KevinMind opened this issue Jul 1, 2018 · 4 comments
Closed

Extract-text-webpack-plugin v1 -> v2 #6248

KevinMind opened this issue Jul 1, 2018 · 4 comments
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@KevinMind
Copy link

Description

When using gatsby-netlify-cms-plugin with gatsby v2 you run into this issue.

Describe the issue that you're seeing.

Error: Cannot find module 'extract-text-webpack-plugin'

  • v8-compile-cache.js:159 require
    [kevin-gatsby]/[v8-compile-cache]/v8-compile-cache.js:159:20

  • gatsby-node.js:14 Object.
    [kevin-gatsby]/[gatsby-plugin-netlify-cms]/gatsby-node.js:14:25

  • v8-compile-cache.js:178 Module._compile
    [kevin-gatsby]/[v8-compile-cache]/v8-compile-cache.js:178:30

  • v8-compile-cache.js:159 require
    [kevin-gatsby]/[v8-compile-cache]/v8-compile-cache.js:159:20

  • api-runner-node.js:81 runAPI
    [kevin-gatsby]/[gatsby]/dist/utils/api-runner-node.js:81:22

  • api-runner-node.js:173 mapSeries
    [kevin-gatsby]/[gatsby]/dist/utils/api-runner-node.js:173:25

  • map.js:27
    [kevin-gatsby]/[async]/internal/map.js:27:9

  • eachOfLimit.js:66 replenish
    [kevin-gatsby]/[async]/internal/eachOfLimit.js:66:17

Steps to reproduce

git clone https://github.com/KevinMind/gatsby-starter-netlify-cms
cd gatsby-starter-netlify-cms
git checkout gatsby-v2
yarn && yarn develop 

This will throw the error.

Clear steps describing how to reproduce the issue.

Expected result

Potential Cause: I'm not sure if gatsby is using webpack for css processing, but if so, this should be changed for mini-css-extrac-plugin.. I'd be glad to make a PR for this if this is the issue.

@KevinMind
Copy link
Author

BTW if you yarn add webpack-extract-text-plugin, the error goes away, so it may not even be used, but is simply required somewhere.. FYI the error goes away if you add it manually.

@m-allanson
Copy link
Contributor

There's an open PR to update the Netlify CMs plugin to work with Gatsby v2: #6056

@m-allanson m-allanson added the type: question or discussion Issue discussing or asking a question about Gatsby label Jul 2, 2018
@sarathy-partha
Copy link

need to add extract-text-webpack-plugin (npm or yarn) to get it working....(not webpack-extract-text-plugin)

@erquhart
Copy link
Contributor

Closed in #6356.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

4 participants