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

build command gives error #43

Closed
brijeshb42 opened this issue Dec 15, 2017 · 3 comments
Closed

build command gives error #43

brijeshb42 opened this issue Dec 15, 2017 · 3 comments

Comments

@brijeshb42
Copy link

When trying to build the project, I am getting this error -

> codepan@0.0.0 build /Users/brijesh/projects/codepan
> poi build

> Running in production mode
> Using external Poi config file
> location: "~/projects/codepan/poi.config.js"
> Using external babel configuration
> location: "~/projects/codepan/.babelrc"
> Using external HTML template file
> location: "~/projects/codepan/index.ejs"
> Using main field in package.json as entry point

TypeError: config.module.noParse.add is not a function
    at extendWebpack (/Users/brijesh/projects/codepan/poi.config.js:13:8)
    at webpackFlows.forEach.flow (/Users/brijesh/projects/codepan/node_modules/poi/lib/index.js:64:43)
    at Array.forEach (native)
    at handleOptions.then.options (/Users/brijesh/projects/codepan/node_modules/poi/lib/index.js:64:27)

 FAIL  Failed to start!

npm ERR! code ELIFECYCLE
...

Something to do with -

config.module.noParse
      .add(/babel-preset-vue/)

in poi.config.js

@egoist
Copy link
Owner

egoist commented Dec 26, 2017

I guess you're using npm install instead of yarn?

There's a breaking change but it will be fine if you have a yarn.lock I think, but anyways I have to update this config to use the latest API of webpack-chain.

@brijeshb42
Copy link
Author

Yes. I am using npm.

@egoist
Copy link
Owner

egoist commented Dec 26, 2017

should be fixed now.

@egoist egoist closed this as completed Dec 26, 2017
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

2 participants