Skip to content

Fix build on window#10982

Closed
mhhegazy wants to merge 3 commits intofacebook:masterfrom
mhhegazy:windows-build-fix
Closed

Fix build on window#10982
mhhegazy wants to merge 3 commits intofacebook:masterfrom
mhhegazy:windows-build-fix

Conversation

@mhhegazy
Copy link

@mhhegazy mhhegazy commented Sep 30, 2017

fix window build issue
1 - issue on rollup/rollup-plugin-alias#11: resolved in v1.4.0
2 - windows path separator break string in rollup-plugin-replace

this solve build part of #9540

@reactjs-bot
Copy link

Deploy preview ready!

Built with commit ecf19b1

https://deploy-preview-10982--reactjs.netlify.com

@NE-SmallTown
Copy link
Contributor

NE-SmallTown commented Sep 30, 2017

It seems that previous workaround doesn't work on the latest react(previous it works on react16-beta.5)

// this is latest react repo which I clone form orgin

D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger>set NODE_PATH=../../build/packages

D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger>npm run build

> react-fiber-debugger@0.0.1 build D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger
> react-scripts build

Creating an optimized production build...
Failed to compile.

Module not found: Error: Cannot resolve module 'react' in D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger\src

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-fiber-debugger@0.0.1 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-fiber-debugger@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\nodejs\node_cache\_logs\2017-09-30T07_22_07_194Z-debug.log

Before(react16.-beta.5) it works fine:

D:\WebStorm_workspace\react\fixtures\fiber-debugger>set NODE_PATH=../../build/packages

D:\WebStorm_workspace\react\fixtures\fiber-debugger>npm run build

> react-fiber-debugger@0.0.1 build D:\WebStorm_workspace\react\fixtures\fiber-debugger
> react-scripts build

Creating an optimized production build...
Compiled successfully.

File sizes after gzip:

  114.27 KB  build\static\js\main.3a869918.js
  174 B      build\static\css\main.47928719.css

The project was built assuming it is hosted at the server root.
To override this, specify the homepage in your package.json.
For example, add this to build it for GitHub Pages:

  "homepage": "http://myname.github.io/myapp",

The build folder is ready to be deployed.
You may serve it with a static server:

  yarn global add serve
  serve -s build

And I copy the changes of this pr, it still can't work.

@mhhegazy
Copy link
Author

mhhegazy commented Oct 2, 2017

@NE-SmallTown I have no issue at all on my environment!

what is your environment?
what the result of your build?
do npm run start on fiber-debugger work?
did build of react success or fail?

try to copy contents of packages folder:

  • react
  • react-art
  • react-dom
  • react-noop-renderer
  • react-test-renderer

into fixtures\fiber-debugger\node_modules
and it will start normally when npm run start

but build will give you:
SyntaxError: Unexpected token: operator (*) [./~/react-noop-renderer/cjs/react-noop-renderer.development.js:7536,0]
but this not issue with with windows build it will give you same error in linux

@NE-SmallTown
Copy link
Contributor

NE-SmallTown commented Oct 2, 2017

@mhhegazy

what is your environment?

windows7 node-8.4.0 npm-5.4.2

what the result of your build?

previous the result is

/build/packages
 -- react
 -- react-art
 -- react-dom
 -- react-noop-renderer
 -- react-test-renderer

and it can work.

and now(react latest) can't build.Just like above comment description.

do npm run start on fiber-debugger work?

yes.Just like I said before, previous it can work but now it can't.

did build of react success or fail?

it fails.Just like I said before, previous it can work but now it can't.

try to copy contents of packages folder into fixtures\fiber-debugger\node_modules and it will start normally when npm run start

this can make it works.(but I think this is not the solution because you know actually we are using react-beta.5 though the repo is react latest)

but build will give you: SyntaxError: Unexpected token: operator (*) [./~/react-noop-renderer/cjs/react-noop-renderer.development.js:7536,0]

after I do the copy, I can use npm run build in the fiber-debugger directory and the build result is correct(the react version in the /packages by building is latest rather beta.5)

@mhhegazy
Copy link
Author

mhhegazy commented Oct 2, 2017

@NE-SmallTown did you built react before you try fiber-debugger

did build of react success or fail?

build of react not fiber-debugger

on D:\WebStorm_workspace\react when you run:

  1. npm install
  2. npm run build

whats the output of command on your terminal plz paste it here

@NE-SmallTown
Copy link
Contributor

NE-SmallTown commented Oct 3, 2017

@mhhegazy

did you built react before you try fiber-debugger

No. Sorry, I did build in the fiber-debugger directory yesterday.

Now after I run install and build in D:\WebStorm_workspace\react, the result is:

D:\WebStorm_workspace\react-fiber>npm run build

> react-build@16.0.0 build D:\WebStorm_workspace\react-fiber
> npm run version-check && node scripts/rollup/build.js


> react-build@16.0.0 version-check D:\WebStorm_workspace\react-fiber
> node ./scripts/tasks/version-check.js

 BUILDING  react.development.js (umd_dev)
 COMPLETE  react.development.js (umd_dev)

 BUILDING  react.production.min.js (umd_prod)
 COMPLETE  react.production.min.js (umd_prod)

 BUILDING  react.development.js (node_dev)
 COMPLETE  react.development.js (node_dev)

 BUILDING  react.production.min.js (node_prod)
'default' is imported from external module 'fbjs/lib/invariant' but never used
 COMPLETE  react.production.min.js (node_prod)

 BUILDING  React-dev.js (fb_dev)
 COMPLETE  React-dev.js (fb_dev)

 BUILDING  React-prod.js (fb_prod)
 COMPLETE  React-prod.js (fb_prod)

 BUILDING  react-dom.development.js (umd_dev)
 COMPLETE  react-dom.development.js (umd_dev)

 BUILDING  react-dom.production.min.js (umd_prod)
 COMPLETE  react-dom.production.min.js (umd_prod)

 BUILDING  react-dom.development.js (node_dev)
 COMPLETE  react-dom.development.js (node_dev)

 BUILDING  react-dom.production.min.js (node_prod)
'default' is imported from external module 'fbjs/lib/invariant' but never used
 COMPLETE  react-dom.production.min.js (node_prod)

 BUILDING  ReactDOMFiber-dev.js (fb_dev)
 COMPLETE  ReactDOMFiber-dev.js (fb_dev)

 BUILDING  ReactDOMFiber-prod.js (fb_prod)
 COMPLETE  ReactDOMFiber-prod.js (fb_prod)

 BUILDING  react-dom-test-utils.development.js (node_dev)
 COMPLETE  react-dom-test-utils.development.js (node_dev)

 BUILDING  ReactTestUtils-dev.js (fb_dev)
 COMPLETE  ReactTestUtils-dev.js (fb_dev)

 BUILDING  react-dom-unstable-native-dependencies.development.js (umd_dev)
 COMPLETE  react-dom-unstable-native-dependencies.development.js (umd_dev)

 BUILDING  react-dom-unstable-native-dependencies.production.min.js (umd_prod)
 COMPLETE  react-dom-unstable-native-dependencies.production.min.js (umd_prod)

 BUILDING  react-dom-unstable-native-dependencies.development.js (node_dev)
 COMPLETE  react-dom-unstable-native-dependencies.development.js (node_dev)

 BUILDING  react-dom-unstable-native-dependencies.production.min.js (node_prod)
'default' is imported from external module 'fbjs/lib/invariant' but never used
 COMPLETE  react-dom-unstable-native-dependencies.production.min.js (node_prod)

 BUILDING  ReactDOMUnstableNativeDependencies-dev.js (fb_dev)
 COMPLETE  ReactDOMUnstableNativeDependencies-dev.js (fb_dev)

 BUILDING  ReactDOMUnstableNativeDependencies-prod.js (fb_prod)
 COMPLETE  ReactDOMUnstableNativeDependencies-prod.js (fb_prod)

 BUILDING  react-dom-server.browser.development.js (umd_dev)
 COMPLETE  react-dom-server.browser.development.js (umd_dev)

 BUILDING  react-dom-server.browser.production.min.js (umd_prod)
 COMPLETE  react-dom-server.browser.production.min.js (umd_prod)

 BUILDING  react-dom-server.browser.development.js (node_dev)
 COMPLETE  react-dom-server.browser.development.js (node_dev)

 BUILDING  react-dom-server.browser.production.min.js (node_prod)
'default' is imported from external module 'fbjs/lib/invariant' but never used
 COMPLETE  react-dom-server.browser.production.min.js (node_prod)

 BUILDING  ReactDOMServer-dev.js (fb_dev)
 COMPLETE  ReactDOMServer-dev.js (fb_dev)

 BUILDING  ReactDOMServer-prod.js (fb_prod)
 COMPLETE  ReactDOMServer-prod.js (fb_prod)

 BUILDING  react-dom-server.node.development.js (node_dev)
The 'classCallCheck' Babel helper is used more than once in your code. It's strongly recommended that you use the "external-helper
s" plugin or the "es2015-rollup" preset. See https://github.com/rollup/rollup-plugin-babel#configuring-babel for more information
 COMPLETE  react-dom-server.node.development.js (node_dev)

 BUILDING  react-dom-server.node.production.min.js (node_prod)
'default' is imported from external module 'fbjs/lib/invariant' but never used
 COMPLETE  react-dom-server.node.production.min.js (node_prod)

 BUILDING  react-art.development.js (umd_dev)
No name was provided for external module 'art/modes/current' in options.globals – guessing 'current'
No name was provided for external module 'art/modes/fast-noSideEffects' in options.globals – guessing 'fastNoSideEffects'
No name was provided for external module 'art/core/transform' in options.globals – guessing 'transform$1'
 COMPLETE  react-art.development.js (umd_dev)

 BUILDING  react-art.production.min.js (umd_prod)
No name was provided for external module 'art/modes/current' in options.globals – guessing 'current'
No name was provided for external module 'art/modes/fast-noSideEffects' in options.globals – guessing 'fastNoSideEffects'
No name was provided for external module 'art/core/transform' in options.globals – guessing 'transform$1'
 COMPLETE  react-art.production.min.js (umd_prod)

 BUILDING  react-art.development.js (node_dev)
 COMPLETE  react-art.development.js (node_dev)

 BUILDING  react-art.production.min.js (node_prod)
'default' is imported from external module 'fbjs/lib/invariant' but never used
 COMPLETE  react-art.production.min.js (node_prod)

 BUILDING  ReactARTFiber-dev.js (fb_dev)
 COMPLETE  ReactARTFiber-dev.js (fb_dev)

 BUILDING  ReactARTFiber-prod.js (fb_prod)
 COMPLETE  ReactARTFiber-prod.js (fb_prod)

 BUILDING  ReactNativeFiber-dev.js (rn_dev)
'default' is imported from external module 'InitializeCore' but never used
 COMPLETE  ReactNativeFiber-dev.js (rn_dev)

 BUILDING  ReactNativeFiber-prod.js (rn_prod)
'default' is imported from external module 'deepFreezeAndThrowOnMutationInDev' but never used
'default' is imported from external module 'InitializeCore' but never used
 COMPLETE  ReactNativeFiber-prod.js (rn_prod)

 BUILDING  react-test-renderer.development.js (node_dev)
 COMPLETE  react-test-renderer.development.js (node_dev)

 BUILDING  ReactTestRendererFiber-dev.js (fb_dev)
 COMPLETE  ReactTestRendererFiber-dev.js (fb_dev)

 BUILDING  react-test-renderer-shallow.development.js (node_dev)
 COMPLETE  react-test-renderer-shallow.development.js (node_dev)

 BUILDING  ReactShallowRenderer-dev.js (fb_dev)
 COMPLETE  ReactShallowRenderer-dev.js (fb_dev)

 BUILDING  react-noop-renderer.development.js (node_dev)
 COMPLETE  react-noop-renderer.development.js (node_dev)

┌────────────────────────────────────────────────────────────────
──────┬───────────┬──────────────┬───────┬───────────┬───────────
───┬───────┐
│ Bundle                                                               │ Prev Size │ Current Size │ Diff  │ Prev Gzip │ Curr
ent Gzip │ Diff  │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react.development.js (UMD_DEV)                                       │ 53.49 KB  │ 53.84 KB     │ 0 %   │ 14.01 KB  │ 14.0
8 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react.production.min.js (UMD_PROD)                                   │ 6.48 KB   │ 6.48 KB      │ 0 %   │ 2.7 KB    │ 2.7
KB       │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react.development.js (NODE_DEV)                                      │ 44.62 KB  │ 44.92 KB     │ 0 %   │ 11.81 KB  │ 11.8
3 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react.production.min.js (NODE_PROD)                                  │ 5.48 KB   │ 5.48 KB      │ 0 %   │ 2.31 KB   │ 2.31
 KB      │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ React-dev.js (FB_DEV)                                                │ 41.99 KB  │ 42.25 KB     │ 0 %   │ 11.06 KB  │ 11.0
8 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ React-prod.js (FB_PROD)                                              │ 24.24 KB  │ 24.24 KB     │ 0 %   │ 6.55 KB   │ 6.55
 KB      │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-dom.development.js (UMD_DEV)                                   │ 599.49 KB │ 601.35 KB    │ 0 %   │ 138.52 KB │ 138.
86 KB    │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-dom.production.min.js (UMD_PROD)                               │ 97.14 KB  │ 97.17 KB     │ 0 %   │ 30.71 KB  │ 30.7
2 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-dom.development.js (NODE_DEV)                                  │ 562.63 KB │ 564.51 KB    │ 0 %   │ 130.04 KB │ 130.
28 KB    │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-dom.production.min.js (NODE_PROD)                              │ 101.97 KB │ 102 KB       │ 0 %   │ 32.05 KB  │ 32.0
6 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ ReactDOMFiber-dev.js (FB_DEV)                                        │ 559.65 KB │ 561.42 KB    │ 0 %   │ 129.52 KB │ 129.
73 KB    │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ ReactDOMFiber-prod.js (FB_PROD)                                      │ 399.84 KB │ 399.98 KB    │ 0 %   │ 89.42 KB  │ 89.4
5 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-dom-test-utils.development.js (NODE_DEV)                       │ 40.68 KB  │ 40.91 KB     │ 0 %   │ 10.83 KB  │ 10.8
6 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ ReactTestUtils-dev.js (FB_DEV)                                       │ 40.26 KB  │ 40.47 KB     │ 0 %   │ 10.77 KB  │ 10.8
 KB      │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-dom-unstable-native-dependencies.development.js (UMD_DEV)      │ 84.48 KB  │ 85.07 KB     │ 0 %   │ 21.41 KB  │ 21.4
7 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-dom-unstable-native-dependencies.production.min.js (UMD_PROD)  │ 14.81 KB  │ 14.81 KB     │ 0 %   │ 4.86 KB   │ 4.86
 KB      │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-dom-unstable-native-dependencies.development.js (NODE_DEV)     │ 78.49 KB  │ 79.05 KB     │ 0 %   │ 19.39 KB  │ 19.4
8 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-dom-unstable-native-dependencies.production.min.js (NODE_PROD) │ 13.59 KB  │ 13.59 KB     │ 0 %   │ 4.37 KB   │ 4.37
 KB      │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ ReactDOMUnstableNativeDependencies-dev.js (FB_DEV)                   │ 77.94 KB  │ 78.49 KB     │ 0 %   │ 19.31 KB  │ 19.4
1 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ ReactDOMUnstableNativeDependencies-prod.js (FB_PROD)                 │ 63.35 KB  │ 63.35 KB     │ 0 %   │ 15.1 KB   │ 15.1
 KB      │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-dom-server.browser.development.js (UMD_DEV)                    │ 126.48 KB │ 127.18 KB    │ 0 %   │ 32.65 KB  │ 32.8
2 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-dom-server.browser.production.min.js (UMD_PROD)                │ 14.6 KB   │ 14.61 KB     │ 0 %   │ 5.71 KB   │ 5.71
 KB      │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-dom-server.browser.development.js (NODE_DEV)                   │ 97.11 KB  │ 97.79 KB     │ 0 %   │ 25.71 KB  │ 25.8
5 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-dom-server.browser.production.min.js (NODE_PROD)               │ 14.53 KB  │ 14.54 KB     │ 0 %   │ 5.71 KB   │ 5.71
 KB      │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ ReactDOMServer-dev.js (FB_DEV)                                       │ 96.54 KB  │ 97.22 KB     │ 0 %   │ 25.62 KB  │ 25.7
5 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ ReactDOMServer-prod.js (FB_PROD)                                     │ 41.19 KB  │ 41.28 KB     │ 0 %   │ 11.51 KB  │ 11.5
4 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-dom-server.node.development.js (NODE_DEV)                      │ 99.33 KB  │ 100.03 KB    │ 0 %   │ 26.25 KB  │ 26.3
9 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-dom-server.node.production.min.js (NODE_PROD)                  │ 15.43 KB  │ 15.44 KB     │ 0 %   │ 6.02 KB   │ 6.03
 KB      │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-art.development.js (UMD_DEV)                                   │ 358.14 KB │ 294.16 KB    │ -18 % │ 79.5 KB   │ 63.8
5 KB     │ -20 % │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-art.production.min.js (UMD_PROD)                               │ 80.34 KB  │ 45.16 KB     │ -44 % │ 24.93 KB  │ 14.1
4 KB     │ -44 % │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-art.development.js (NODE_DEV)                                  │ 284.22 KB │ 284.47 KB    │ 0 %   │ 60.72 KB  │ 60.7
9 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-art.production.min.js (NODE_PROD)                              │ 50.96 KB  │ 50.96 KB     │ 0 %   │ 15.97 KB  │ 15.9
7 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ ReactARTFiber-dev.js (FB_DEV)                                        │ 283.1 KB  │ 283.33 KB    │ 0 %   │ 60.76 KB  │ 60.8
4 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ ReactARTFiber-prod.js (FB_PROD)                                      │ 212.48 KB │ 212.48 KB    │ 0 %   │ 44.2 KB   │ 44.2
 KB      │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ ReactNativeFiber-dev.js (RN_DEV)                                     │ 268.61 KB │ 268.61 KB    │ 0 %   │ 46.96 KB  │ 46.9
6 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ ReactNativeFiber-prod.js (RN_PROD)                                   │ 210.68 KB │ 210.68 KB    │ 0 %   │ 36.58 KB  │ 36.5
8 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-test-renderer.development.js (NODE_DEV)                        │ 288.21 KB │ 288.52 KB    │ 0 %   │ 61.15 KB  │ 61.2
2 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ ReactTestRendererFiber-dev.js (FB_DEV)                               │ 287.08 KB │ 287.38 KB    │ 0 %   │ 61.2 KB   │ 61.2
7 KB     │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-test-renderer-shallow.development.js (NODE_DEV)                │ 8.94 KB   │ 8.97 KB      │ 0 %   │ 2.23 KB   │ 2.25
 KB      │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ ReactShallowRenderer-dev.js (FB_DEV)                                 │ 8.61 KB   │ 8.62 KB      │ 0 %   │ 2.16 KB   │ 2.17
 KB      │ 0 %   │
├────────────────────────────────────────────────────────────────
──────┼───────────┼──────────────┼───────┼───────────┼───────────
───┼───────┤
│ react-noop-renderer.development.js (NODE_DEV)                        │ 275.97 KB │ 276.23 KB    │ 0 %   │ 58.13 KB  │ 58.2
 KB      │ 0 %   │
└────────────────────────────────────────────────────────────────
──────┴───────────┴──────────────┴───────┴───────────┴───────────
───┴───────┘

after do build in the root directory, then I try do install and build in fiber-debugger directory again, it still fails.(I delete the copy from packages folder before this)

D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger>npm run build

> react-fiber-debugger@0.0.1 build D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger
> react-scripts build

Creating an optimized production build...
Failed to compile.

Module not found: Error: Cannot resolve module 'react' in D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger\src

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-fiber-debugger@0.0.1 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-fiber-debugger@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\nodejs\node_cache\_logs\2017-10-03T14_49_58_604Z-debug.log

@mhhegazy
Copy link
Author

mhhegazy commented Oct 3, 2017

@NE-SmallTown

(I delete the copy from packages folder before this)

why?! this build we depend on when we set NODE_PATH=../../build/packages
and this the reason you got the error
Module not found: Error: Cannot resolve module 'react'

try to follow this steps:

  • build react in root repo directory --> npm install and npm run build
  • don't delete anything from build folder cause this react build we'll depend on in next steps
  • change directory to fixtures/fiber-debugger --> cd .\fixtures\fiber-debugger
  • set NODE_PATH=../../build/packages
  • install & start fiber-debugger --> npm install and npm run start
  • the fiber-debugger will start with react build of repo's master branch

@NE-SmallTown
Copy link
Contributor

@mhhegazy

why?

I delete fiber-debugger/node_modules/react rather than packages folder because fiber-debugger/node_modules/react is the copy of packages/react of react-beta.5(you suggest do the copy before to test whether npm start can work if we have react in node_modules) but now we need depend on react@latest.

@mhhegazy
Copy link
Author

mhhegazy commented Oct 4, 2017

@NE-SmallTown
ok, thats right;
then I think you forgot to set NODE_PATH=../../build/packages in fixtures/fiber-debugger directory after build of react but before npm run start

try and tell me did fiber-debugger started normally

@mhhegazy
Copy link
Author

mhhegazy commented Oct 4, 2017

@NE-SmallTown react built successfully on your machine but you have issue in linking react to fiber-debugger fixture

@NE-SmallTown
Copy link
Contributor

@mhhegazy

try and tell me did fiber-debugger started normally

Failed to compile.

Error in ./src/index.js
Module not found: 'react' in D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger\src

 @ ./src/index.js 5:13-29

Error in ./src/index.js
Module not found: 'react-dom' in D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger\src

 @ ./src/index.js 9:16-36

Error in ./src/App.js
Module not found: 'react' in D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger\src

 @ ./src/App.js 10:13-29

Error in ./src/App.js
Module not found: 'react-noop-renderer' in D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger\src

 @ ./src/App.js 18:25-55

Error in ./src/Editor.js
Module not found: 'react' in D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger\src

 @ ./src/Editor.js 10:13-29

Error in ./src/Fibers.js
Module not found: 'react' in D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger\src

 @ ./src/Fibers.js 12:13-29

Error in ./~/_react-draggable@2.2.6@react-draggable/dist/react-draggable.js
Module not found: 'react' in D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger\node_modules\_react-draggable@2.2.6@react-draggable\dist

 @ ./~/_react-draggable@2.2.6@react-draggable/dist/react-draggable.js 3:27-43

Error in ./~/_react-draggable@2.2.6@react-draggable/dist/react-draggable.js
Module not found: 'react-dom' in D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger\node_modules\_react-draggable@2.2.6@react-draggable\dist

 @ ./~/_react-draggable@2.2.6@react-draggable/dist/react-draggable.js 3:45-65

Error in ./~/_react-motion@0.5.2@react-motion/lib/Motion.js
Module not found: 'react' in D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger\node_modules\_react-motion@0.5.2@react-motion\lib

 @ ./~/_react-motion@0.5.2@react-motion/lib/Motion.js 39:13-29

Error in ./~/_react-motion@0.5.2@react-motion/lib/StaggeredMotion.js
Module not found: 'react' in D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger\node_modules\_react-motion@0.5.2@react-motion\lib

 @ ./~/_react-motion@0.5.2@react-motion/lib/StaggeredMotion.js 39:13-29

Error in ./~/_react-motion@0.5.2@react-motion/lib/TransitionMotion.js
Module not found: 'react' in D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger\node_modules\_react-motion@0.5.2@react-motion\lib

 @ ./~/_react-motion@0.5.2@react-motion/lib/TransitionMotion.js 43:13-29

react built successfully on your machine but you have issue in linking react to fiber-debugger fixture

Yes, That's the problem.

@mhhegazy
Copy link
Author

mhhegazy commented Oct 4, 2017

@NE-SmallTown

  • what the output of dir ..\..\build\packages

I don't know why .env file and set NODE_PATH doesn't make effect on your environment it work normally on mine

the only workaround on my mind right now is to build react then take the output of build from build/packages and paste it in node_modules of fiber_debugger

@NE-SmallTown
Copy link
Contributor

NE-SmallTown commented Oct 4, 2017

@mhhegazy

what the output of dir ....\build\packages

D:\WebStorm_workspace\react-fiber\fixtures\fiber-debugger>dir "../../build/packages"
 驱动器 D 中的卷没有标签。
 卷的序列号是 0009-809C

 D:\WebStorm_workspace\react-fiber\build\packages 的目录

2017/10/04  11:37    <DIR>          .
2017/10/04  11:37    <DIR>          ..
2017/10/04  11:35    <DIR>          react
2017/10/04  11:36    <DIR>          react-art
2017/10/04  11:35    <DIR>          react-dom
2017/10/04  11:37    <DIR>          react-test-renderer
               0 个文件              0 字节
               6 个目录 48,290,697,216 可用字节

I don't know why .env file and set NODE_PATH doesn't make effect on your environment it work normally on mine

ahh, I doubt this too. And before(react-beta.5) it works(set NODE_PATH) but now it can't, it's really weird.

the only workaround on my mind right now is to build react then take the output of build from build/packages and paste it in node_modules of fiber_debugger

Ye, thanks, that's what I suppose to do(maybe I will create a script to do this).

So, I don't think the problem we are talking about will become others problem(it seems that that's my computer or environment's fault).

So, I would like to see this pr get merged. :)

@gaearon
Copy link
Collaborator

gaearon commented Oct 20, 2017

Don't bother with Fiber debugger, it's not essential.

We've recently changed a lot of things. For example Yarn is now required to build.

Can you get

yarn 
yarn build

to work with master?

Thanks!

@mhhegazy
Copy link
Author

@NE-SmallTown @ovirovkin

Can you get

yarn 
yarn build

@NE-SmallTown
Copy link
Contributor

@mhhegazy

D:\WebStorm_workspace\react-fiber>yarn build
yarn run v1.2.1
$ npm run version-check && node scripts/rollup/build.js

> react-build@16.0.0 version-check D:\WebStorm_workspace\react-fiber
> node ./scripts/tasks/version-check.js

 BUILDING  react.development.js (umd_dev)
 COMPLETE  react.development.js (umd_dev)

 BUILDING  react.production.min.js (umd_prod)
 COMPLETE  react.production.min.js (umd_prod)

 BUILDING  react.development.js (node_dev)
 COMPLETE  react.development.js (node_dev)

 BUILDING  react.production.min.js (node_prod)
'default' is imported from external module 'fbjs/lib/invariant' but never used
 COMPLETE  react.production.min.js (node_prod)

 BUILDING  React-dev.js (fb_dev)
 COMPLETE  React-dev.js (fb_dev)

 BUILDING  React-prod.js (fb_prod)
 COMPLETE  React-prod.js (fb_prod)

 BUILDING  react-dom.development.js (umd_dev)
 COMPLETE  react-dom.development.js (umd_dev)

 BUILDING  react-dom.production.min.js (umd_prod)
 COMPLETE  react-dom.production.min.js (umd_prod)

 BUILDING  react-dom.development.js (node_dev)
 COMPLETE  react-dom.development.js (node_dev)

 BUILDING  react-dom.production.min.js (node_prod)
 COMPLETE  react-dom.production.min.js (node_prod)

 BUILDING  ReactDOMFiber-dev.js (fb_dev)
 COMPLETE  ReactDOMFiber-dev.js (fb_dev)

 BUILDING  ReactDOMFiber-prod.js (fb_prod)
 COMPLETE  ReactDOMFiber-prod.js (fb_prod)

 BUILDING  react-dom-test-utils.development.js (node_dev)
 COMPLETE  react-dom-test-utils.development.js (node_dev)

 BUILDING  react-dom-test-utils.production.min.js (node_prod)
'default' is imported from external module 'fbjs/lib/invariant' but never used
 COMPLETE  react-dom-test-utils.production.min.js (node_prod)

 BUILDING  ReactTestUtils-dev.js (fb_dev)
 COMPLETE  ReactTestUtils-dev.js (fb_dev)

 BUILDING  react-dom-unstable-native-dependencies.development.js (umd_dev)
 COMPLETE  react-dom-unstable-native-dependencies.development.js (umd_dev)

 BUILDING  react-dom-unstable-native-dependencies.production.min.js (umd_prod)
 COMPLETE  react-dom-unstable-native-dependencies.production.min.js (umd_prod)

 BUILDING  react-dom-unstable-native-dependencies.development.js (node_dev)
 COMPLETE  react-dom-unstable-native-dependencies.development.js (node_dev)

 BUILDING  react-dom-unstable-native-dependencies.production.min.js (node_prod)
'default' is imported from external module 'fbjs/lib/invariant' but never used
 COMPLETE  react-dom-unstable-native-dependencies.production.min.js (node_prod)

 BUILDING  ReactDOMUnstableNativeDependencies-dev.js (fb_dev)
 COMPLETE  ReactDOMUnstableNativeDependencies-dev.js (fb_dev)

 BUILDING  ReactDOMUnstableNativeDependencies-prod.js (fb_prod)
 COMPLETE  ReactDOMUnstableNativeDependencies-prod.js (fb_prod)

 BUILDING  react-dom-server.browser.development.js (umd_dev)
 COMPLETE  react-dom-server.browser.development.js (umd_dev)

 BUILDING  react-dom-server.browser.production.min.js (umd_prod)
 COMPLETE  react-dom-server.browser.production.min.js (umd_prod)

 BUILDING  react-dom-server.browser.development.js (node_dev)
 COMPLETE  react-dom-server.browser.development.js (node_dev)

 BUILDING  react-dom-server.browser.production.min.js (node_prod)
'default' is imported from external module 'fbjs/lib/invariant' but never used
 COMPLETE  react-dom-server.browser.production.min.js (node_prod)

 BUILDING  ReactDOMServer-dev.js (fb_dev)
 COMPLETE  ReactDOMServer-dev.js (fb_dev)

 BUILDING  ReactDOMServer-prod.js (fb_prod)
 COMPLETE  ReactDOMServer-prod.js (fb_prod)

 BUILDING  react-dom-server.node.development.js (node_dev)
The 'classCallCheck' Babel helper is used more than once in your code. It's strongly recommended that you use the "external-helpers" plugin or the "es2015-rollup" preset. See https://github.com/rollup/rollup-plugin-babel#configuring-babel for more information
 COMPLETE  react-dom-server.node.development.js (node_dev)

 BUILDING  react-dom-server.node.production.min.js (node_prod)
'default' is imported from external module 'fbjs/lib/invariant' but never used
 COMPLETE  react-dom-server.node.production.min.js (node_prod)

 BUILDING  react-art.development.js (umd_dev)
No name was provided for external module 'art/modes/current' in options.globals – guessing 'current'
No name was provided for external module 'art/modes/fast-noSideEffects' in options.globals – guessing 'fastNoSideEffects'
No name was provided for external module 'art/core/transform' in options.globals – guessing 'transform$1'
 COMPLETE  react-art.development.js (umd_dev)

 BUILDING  react-art.production.min.js (umd_prod)
No name was provided for external module 'art/modes/current' in options.globals – guessing 'current'
No name was provided for external module 'art/modes/fast-noSideEffects' in options.globals – guessing 'fastNoSideEffects'
No name was provided for external module 'art/core/transform' in options.globals – guessing 'transform$1'
 COMPLETE  react-art.production.min.js (umd_prod)

 BUILDING  react-art.development.js (node_dev)
 COMPLETE  react-art.development.js (node_dev)

 BUILDING  react-art.production.min.js (node_prod)
 COMPLETE  react-art.production.min.js (node_prod)

 BUILDING  ReactARTFiber-dev.js (fb_dev)
 COMPLETE  ReactARTFiber-dev.js (fb_dev)

 BUILDING  ReactARTFiber-prod.js (fb_prod)
 COMPLETE  ReactARTFiber-prod.js (fb_prod)

 BUILDING  ReactNativeFiber-dev.js (rn_dev)
'default' is imported from external module 'InitializeCore' but never used
 COMPLETE  ReactNativeFiber-dev.js (rn_dev)

 BUILDING  ReactNativeFiber-prod.js (rn_prod)
'default' is imported from external module 'deepFreezeAndThrowOnMutationInDev' but never used
'default' is imported from external module 'InitializeCore' but never used
 COMPLETE  ReactNativeFiber-prod.js (rn_prod)

 BUILDING  ReactNativeRTFiber-dev.js (rn_dev)
'default' is imported from external module 'InitializeCore' but never used
 COMPLETE  ReactNativeRTFiber-dev.js (rn_dev)

 BUILDING  ReactNativeRTFiber-prod.js (rn_prod)
'default' is imported from external module 'InitializeCore' but never used
 COMPLETE  ReactNativeRTFiber-prod.js (rn_prod)

 BUILDING  react-test-renderer.development.js (node_dev)
 COMPLETE  react-test-renderer.development.js (node_dev)

 BUILDING  react-test-renderer.production.min.js (node_prod)
 COMPLETE  react-test-renderer.production.min.js (node_prod)

 BUILDING  ReactTestRendererFiber-dev.js (fb_dev)
 COMPLETE  ReactTestRendererFiber-dev.js (fb_dev)

 BUILDING  react-test-renderer-shallow.development.js (node_dev)
 COMPLETE  react-test-renderer-shallow.development.js (node_dev)

 BUILDING  react-test-renderer-shallow.production.min.js (node_prod)
'default' is imported from external module 'fbjs/lib/invariant' but never used
 COMPLETE  react-test-renderer-shallow.production.min.js (node_prod)

 BUILDING  ReactShallowRenderer-dev.js (fb_dev)
 COMPLETE  ReactShallowRenderer-dev.js (fb_dev)

 BUILDING  react-noop-renderer.development.js (node_dev)
 COMPLETE  react-noop-renderer.development.js (node_dev)

┌──────────────────────────────────────────────────────────────────────┬───────────┬──────────────┬───────┬───────────┬─
─────────────┬───────┐
│ Bundle                                                               │ Prev Size │ Current Size │ Diff  │ Prev Gzip │ Current Gzip │ Diff  │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react.development.js (UMD_DEV)                                       │ 53.49 KB  │ 53.84 KB     │ 0 %   │ 14.01 KB  │ 14.08 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react.production.min.js (UMD_PROD)                                   │ 6.48 KB   │ 6.48 KB      │ 0 %   │ 2.7 KB    │ 2.7 KB       │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react.development.js (NODE_DEV)                                      │ 44.62 KB  │ 44.92 KB     │ 0 %   │ 11.81 KB  │ 11.83 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react.production.min.js (NODE_PROD)                                  │ 5.48 KB   │ 5.48 KB      │ 0 %   │ 2.31 KB   │ 2.31 KB      │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ React-dev.js (FB_DEV)                                                │ 41.99 KB  │ 42.25 KB     │ 0 %   │ 11.06 KB  │ 11.08 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ React-prod.js (FB_PROD)                                              │ 24.24 KB  │ 24.24 KB     │ 0 %   │ 6.55 KB   │ 6.55 KB      │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom.development.js (UMD_DEV)                                   │ 614.53 KB │ 616.82 KB    │ 0 %   │ 141.51 KB │ 141.98 KB    │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom.production.min.js (UMD_PROD)                               │ 99.11 KB  │ 99.22 KB     │ 0 %   │ 31.34 KB  │ 31.37 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom.development.js (NODE_DEV)                                  │ 577.68 KB │ 579.98 KB    │ 0 %   │ 132.98 KB │ 133.33 KB    │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom.production.min.js (NODE_PROD)                              │ 103.86 KB │ 103.98 KB    │ 0 %   │ 32.71 KB  │ 32.74 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ ReactDOMFiber-dev.js (FB_DEV)                                        │ 574.65 KB │ 576.91 KB    │ 0 %   │ 132.41 KB │ 132.76 KB    │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ ReactDOMFiber-prod.js (FB_PROD)                                      │ 409.4 KB  │ 410.05 KB    │ 0 %   │ 91.28 KB  │ 91.46 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom-test-utils.development.js (NODE_DEV)                       │ 40.68 KB  │ 40.91 KB     │ 0 %   │ 10.83 KB  │ 10.86 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ ReactTestUtils-dev.js (FB_DEV)                                       │ 40.26 KB  │ 40.47 KB     │ 0 %   │ 10.77 KB  │ 10.8 KB      │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom-unstable-native-dependencies.development.js (UMD_DEV)      │ 84.83 KB  │ 85.41 KB     │ 0 %   │ 21.46 KB  │ 21.54 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom-unstable-native-dependencies.production.min.js (UMD_PROD)  │ 14.89 KB  │ 14.89 KB     │ 0 %   │ 4.89 KB   │ 4.89 KB      │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom-unstable-native-dependencies.development.js (NODE_DEV)     │ 78.84 KB  │ 79.4 KB      │ 0 %   │ 19.59 KB  │ 19.67 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom-unstable-native-dependencies.production.min.js (NODE_PROD) │ 13.67 KB  │ 13.67 KB     │ 0 %   │ 4.4 KB    │ 4.4 KB       │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ ReactDOMUnstableNativeDependencies-dev.js (FB_DEV)                   │ 78.29 KB  │ 78.84 KB     │ 0 %   │ 19.39 KB  │ 19.58 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ ReactDOMUnstableNativeDependencies-prod.js (FB_PROD)                 │ 63.6 KB   │ 63.6 KB      │ 0 %   │ 15.16 KB  │ 15.16 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom-server.browser.development.js (UMD_DEV)                    │ 126.84 KB │ 127.55 KB    │ 0 %   │ 32.75 KB  │ 32.91 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom-server.browser.production.min.js (UMD_PROD)                │ 14.72 KB  │ 14.78 KB     │ 0 %   │ 5.75 KB   │ 5.77 KB      │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom-server.browser.development.js (NODE_DEV)                   │ 97.47 KB  │ 98.16 KB     │ 0 %   │ 25.81 KB  │ 25.94 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom-server.browser.production.min.js (NODE_PROD)               │ 14.65 KB  │ 14.69 KB     │ 0 %   │ 5.74 KB   │ 5.75 KB      │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ ReactDOMServer-dev.js (FB_DEV)                                       │ 96.9 KB   │ 97.59 KB     │ 0 %   │ 25.72 KB  │ 25.84 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ ReactDOMServer-prod.js (FB_PROD)                                     │ 41.49 KB  │ 41.63 KB     │ 0 %   │ 11.57 KB  │ 11.61 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom-server.node.development.js (NODE_DEV)                      │ 99.69 KB  │ 100.4 KB     │ 0 %   │ 26.35 KB  │ 26.48 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom-server.node.production.min.js (NODE_PROD)                  │ 15.55 KB  │ 15.59 KB     │ 0 %   │ 6.06 KB   │ 6.07 KB      │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-art.development.js (UMD_DEV)                                   │ 368.06 KB │ 304.09 KB    │ -18 % │ 81.37 KB  │ 65.72 KB     │ -20 % │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-art.production.min.js (UMD_PROD)                               │ 81.74 KB  │ 46.54 KB     │ -44 % │ 25.39 KB  │ 14.63 KB     │ -43 % │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-art.development.js (NODE_DEV)                                  │ 294.14 KB │ 294.39 KB    │ 0 %   │ 62.59 KB  │ 62.66 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-art.production.min.js (NODE_PROD)                              │ 52.28 KB  │ 52.28 KB     │ 0 %   │ 16.5 KB   │ 16.5 KB      │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ ReactARTFiber-dev.js (FB_DEV)                                        │ 293.04 KB │ 293.28 KB    │ 0 %   │ 62.63 KB  │ 62.7 KB      │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ ReactARTFiber-prod.js (FB_PROD)                                      │ 219.32 KB │ 219.32 KB    │ 0 %   │ 45.47 KB  │ 45.47 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ ReactNativeFiber-dev.js (RN_DEV)                                     │ 276.47 KB │ 276.47 KB    │ 0 %   │ 48.02 KB  │ 48.02 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ ReactNativeFiber-prod.js (RN_PROD)                                   │ 216.72 KB │ 216.72 KB    │ 0 %   │ 37.6 KB   │ 37.6 KB      │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-test-renderer.development.js (NODE_DEV)                        │ 297.82 KB │ 298.14 KB    │ 0 %   │ 62.97 KB  │ 63.05 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ ReactTestRendererFiber-dev.js (FB_DEV)                               │ 296.71 KB │ 297.01 KB    │ 0 %   │ 63.01 KB  │ 63.09 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-test-renderer-shallow.development.js (NODE_DEV)                │ 9 KB      │ 9.02 KB      │ 0 %   │ 2.25 KB   │ 2.27 KB      │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ ReactShallowRenderer-dev.js (FB_DEV)                                 │ 8.66 KB   │ 8.68 KB      │ 0 %   │ 2.17 KB   │ 2.19 KB      │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-noop-renderer.development.js (NODE_DEV)                        │ 285.71 KB │ 285.97 KB    │ 0 %   │ 60 KB     │ 60.06 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ ReactNativeRTFiber-dev.js (RN_DEV)                                   │ 210.06 KB │ 210.06 KB    │ 0 %   │ 35.81 KB  │ 35.81 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ ReactNativeRTFiber-prod.js (RN_PROD)                                 │ 159.85 KB │ 159.85 KB    │ 0 %   │ 26.88 KB  │ 26.88 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-test-renderer.production.min.js (NODE_PROD)                    │ 53.79 KB  │ 53.79 KB     │ 0 %   │ 16.73 KB  │ 16.73 KB     │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-test-renderer-shallow.production.min.js (NODE_PROD)            │ 4.43 KB   │ 4.43 KB      │ 0 %   │ 1.6 KB    │ 1.6 KB       │ 0 %   │
├──────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼───────┼───────────┼─
─────────────┼───────┤
│ react-dom-test-utils.production.min.js (NODE_PROD)                   │ 11.34 KB  │ 11.34 KB     │ 0 %   │ 4.14 KB   │ 4.14 KB      │ 0 %   │
└──────────────────────────────────────────────────────────────────────┴───────────┴──────────────┴───────┴───────────┴─
─────────────┴───────┘
Done in 191.81s.

@ovirovkin
Copy link

@mhhegazy yarn and yarn build working perfect on latest master

@gaearon
Copy link
Collaborator

gaearon commented Oct 29, 2017

I'm sorry for losing track of this again. That file changed—would you mind trying to bring it up to date again?

@ovirovkin
Copy link

@gaearon @mhhegazy I can't reproduce build issue on latest master currently. I am a bit out of context to say why, but it's looks like replaceModules has been removed from getPlugins() function and not causing issues anymore.

@gaearon
Copy link
Collaborator

gaearon commented Oct 29, 2017

That’s true. We still use rollup-plugin-alias though. Does it need updating?

@mhhegazy mhhegazy closed this Nov 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Comments