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 breaking with yarn v0.24.6 on OSX (running web + native) #217

Closed
mairh opened this issue Jun 4, 2017 · 14 comments
Closed

Build breaking with yarn v0.24.6 on OSX (running web + native) #217

mairh opened this issue Jun 4, 2017 · 14 comments

Comments

@mairh
Copy link
Member

mairh commented Jun 4, 2017

This is just a heads up that the build is breaking when running yarn watch using v0.24.6

Failing with error

yarn watch v0.24.6
$ node tools/webpack.entry watch
Using Webpack DLL vendor bundle
[HPM] Proxy created: !/*.hot-update.{json,js}  ->  http://localhost:8080
webpack-for-web-frontend Webpack web-frontend dev server listening on 3000
webpack-for-ios-frontend Webpack ios-frontend dev server listening on 3020
{ Error: Cannot find module './build/Release/DTraceProviderBindings'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/nish/Documents/code/easymedi/node_modules/dtrace-provider/dtrace-provider.js:17:23)
    at Module._compile (module.js:569:30)
    at Module._extensions..js (module.js:580:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/nish/Documents/code/easymedi/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/nish/Documents/code/easymedi/node_modules/bunyan/lib/bunyan.js:79:18)
    at Module._compile (module.js:569:30)
    at Module._extensions..js (module.js:580:10) code: 'MODULE_NOT_FOUND' }
{ Error: Cannot find module './build/default/DTraceProviderBindings'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/nish/Documents/code/easymedi/node_modules/dtrace-provider/dtrace-provider.js:17:23)
    at Module._compile (module.js:569:30)
    at Module._extensions..js (module.js:580:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/nish/Documents/code/easymedi/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/nish/Documents/code/easymedi/node_modules/bunyan/lib/bunyan.js:79:18)
    at Module._compile (module.js:569:30)
    at Module._extensions..js (module.js:580:10) code: 'MODULE_NOT_FOUND' }
{ Error: Cannot find module './build/Debug/DTraceProviderBindings'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/nish/Documents/code/easymedi/node_modules/dtrace-provider/dtrace-provider.js:17:23)
    at Module._compile (module.js:569:30)
    at Module._extensions..js (module.js:580:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/nish/Documents/code/easymedi/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/nish/Documents/code/easymedi/node_modules/bunyan/lib/bunyan.js:79:18)
    at Module._compile (module.js:569:30)
    at Module._extensions..js (module.js:580:10) code: 'MODULE_NOT_FOUND' }

It seems like this is a common issue

trentm/node-bunyan#216
expo/create-react-native-app#135

Workaround is to use npm install and npm run watch instead of yarn and yarn watch

@mairh mairh changed the title Build braking with yarn v0.24.6 on OSX Build breaking with yarn v0.24.6 on OSX (running web + native) Jun 4, 2017
@OmgImAlexis
Copy link

If yarn adds a way to change the Python version being used this will be fixed as building with Python 2.7 instead of Python 3 fixes this issue.

Ref: yarnpkg/yarn#3519

@mairh
Copy link
Member Author

mairh commented Jun 9, 2017

Seem like yarn v0.24.6started working for me now. Not sure what has changed. If someone else can confirm that yarn watch is running without any problem then we can close this issue.

@larixer
Copy link
Member

larixer commented Jun 9, 2017

Yes, working for me now too. And I have faced this bug previously. Not sure what has changed, but it works now. Closing this issue.

@larixer larixer closed this as completed Jun 9, 2017
@mairh mairh reopened this Jun 12, 2017
@mairh
Copy link
Member Author

mairh commented Jun 12, 2017

Reopening since I am facing the same issue again using the same version.

screen shot 2017-06-12 at 17 41 50

@larixer
Copy link
Member

larixer commented Jun 12, 2017

@mairh Doesn't reproduces for me now

@mairh
Copy link
Member Author

mairh commented Jun 12, 2017

@Vlasenko Are you using the same yarn version?

Could you try the following options (if you haven't done already)

  1. Remove build folder
  2. Remove node_modules
  3. Remove .expo
  4. Try android: true and then with ios: true

@larixer
Copy link
Member

larixer commented Jun 12, 2017

Yes, I'm using the yarn 0.24.6 which is the latest stable at the moment and I'm doing fresh clone with android: true

@mairh
Copy link
Member Author

mairh commented Jun 12, 2017

Although, it shouldn't make any difference, but could be it only be happening on ios: true ?

@mairh
Copy link
Member Author

mairh commented Jun 12, 2017

@mitjade When you have time could you give it a try?

@mitjade
Copy link
Collaborator

mitjade commented Jun 12, 2017

@mairh Will do in a few hours.

@mitjade
Copy link
Collaborator

mitjade commented Jun 12, 2017

Currently it's working for me. I had some problems with yarn when I was running also iOS simulator. For web only no problems so far.

@mairh
Copy link
Member Author

mairh commented Jun 12, 2017

yes, for the web only it works fine. I'll keep this issue open for a short while and see if the yarn problem is just hit and trail or something else. Thanks for checking it out though.

@OmgImAlexis
Copy link

@mairh this issue is because of bunyan it won't just randomly go away you'll need to either switch to using npm install for now with python 2.7 set or wait for yarn to add a python flag as I stated above.

Bunyan issue: trentm/node-bunyan#216
Yarn issue: yarnpkg/yarn#3519

@larixer
Copy link
Member

larixer commented Jul 11, 2017

This should be fixed now via:
2af3d4a

It utilizes latest xdl, which has commit:
expo/xdl@00125da

@expo/bunyan doesn't depend on dtrace-provider that causes this problem.

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

4 participants