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

Npm run build runs forever ? #18

Closed
madwill opened this issue Oct 26, 2018 · 2 comments
Closed

Npm run build runs forever ? #18

madwill opened this issue Oct 26, 2018 · 2 comments

Comments

@madwill
Copy link

madwill commented Oct 26, 2018

Hi everyone!

Thanks for creating this! Allowing us to try CRA2. I have made the switch and npm start works great but somehow when its time to create a build it appears the build stop somewhere.

Is there any way to debug what is happening? My reason for customize-cra was mobx. Thinking of going decorator-less right now.

tried this config:


const rewireMobX = require('react-app-rewire-mobx');
const { override, addDecoratorsLegacy, disableEsLint, addBundleVisualizer, addWebpackAlias, adjustWorkbox } = require("customize-cra");
const path = require("path");

/* config-overrides.js */
module.exports = function override(config, env) {
  config = rewireMobX(config, env);
  return config;
}

module.exports = override(
  addDecoratorsLegacy(),
  disableEsLint(),  
);

and this one


const { override, addDecoratorsLegacy, disableEsLint, addBundleVisualizer, addWebpackAlias, adjustWorkbox } = require("customize-cra");
const path = require("path");

module.exports = override(
  addDecoratorsLegacy(),
  disableEsLint(),
 
);

Did i get something wrong ?

@madwill
Copy link
Author

madwill commented Oct 26, 2018

Turns out disabling sourcemap allows it to build !

GENERATE_SOURCEMAP=false yarn build

Not sure what happened here but at least I can build now.

@arackaf
Copy link
Owner

arackaf commented Oct 29, 2018

Glad you figured it out!

@arackaf arackaf closed this as completed Oct 29, 2018
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