React: Build Error: not found the fbjs\lib\warning

Created on 6 Apr 2017  路  6Comments  路  Source: facebook/react

$ npm run build

[email protected] build D:\github\react
npm run version-check && node scripts/rollup/build.js

[email protected] version-check D:\github\react
node ./scripts/tasks/version-check.js

STARTING react.development.js (umd_dev)
Error: Could not load D:\github\react\node_modules\fbjs\lib\warning (imported by D:\github\react\src\isomorphic\modern\class\ReactNoopUpdateQueue.js): ENOENT: no such file or directory, open 'D:\github\react\node_modules\fbjs\lib\warning'
at D:\github\react\node_modules\rollup\dist\rollup.js:9461:10

But I can found the package in the node_modules.(win10 64)

Most helpful comment

It't due to "rollup-plugin-alias", isFilePath is not work on windows.
See this issue

All 6 comments

It is quite possible that the build process is broken on Windows as we just rewrote it. Would you like to help fix it?

It seems like that warning.js is resolved to 'D:\github\react\node_modules\fbjs\lib\warning', it's lack of a extension like '.js'

It't due to "rollup-plugin-alias", isFilePath is not work on windows.
See this issue

Has this problem been solved? I still have the same problem

@JeffWong16 would you like to test this out again and see if it's still broken?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zpao picture zpao  路  3Comments

Prinzhorn picture Prinzhorn  路  3Comments

jimfb picture jimfb  路  3Comments

zpao picture zpao  路  3Comments

zpao picture zpao  路  3Comments