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

meteor 1.3.4_1.4 fiber future #7302

Closed
akaiworld opened this issue Jun 25, 2016 · 13 comments
Closed

meteor 1.3.4_1.4 fiber future #7302

akaiworld opened this issue Jun 25, 2016 · 13 comments

Comments

@akaiworld
Copy link

akaiworld commented Jun 25, 2016

After updating to meteor 1.3.4_1.4
i started getting meteor start up errors:

MBP-Anton:EventsApp antonioffe$ meteor
[[[[[ ~/Desktop/Документы/Web/MAMP/meteor/EventsApp ]]]]]

=> Started proxy.
=> Started MongoDB.
W20160625-20:15:06.071(4)? (STDERR)
W20160625-20:15:06.137(4)? (STDERR) /Users/antonioffe/.meteor/packages/meteor-tool/.1.3.4_1.4siyah++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20160625-20:15:06.137(4)? (STDERR) throw(ex);
W20160625-20:15:06.137(4)? (STDERR) ^
W20160625-20:15:06.555(4)? (STDERR) Error: ENOENT, no such file or directory '/node_modules/needle/lib/../package.json'
W20160625-20:15:06.556(4)? (STDERR) at Object.fs.openSync (fs.js:439:18)
W20160625-20:15:06.556(4)? (STDERR) at Object.fs.readFileSync (fs.js:290:15)
W20160625-20:15:06.556(4)? (STDERR) at meteorInstall.node_modules.needle.lib.needle.js (node_modules/needle/lib/needle.js:24:1)
W20160625-20:15:06.557(4)? (STDERR) at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1)
W20160625-20:15:06.557(4)? (STDERR) at require (packages/modules-runtime/.npm/package/node_modules/install/install.js:82:1)
W20160625-20:15:06.557(4)? (STDERR) at node_modules/neo4j-fiber/lib/helpers.js:51:1
W20160625-20:15:06.557(4)? (STDERR) at meteorInstall.node_modules.neo4j-fiber.lib.helpers.js (node_modules/neo4j-fiber/lib/helpers.js:62:1)
W20160625-20:15:06.557(4)? (STDERR) at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1)
W20160625-20:15:06.557(4)? (STDERR) at require (packages/modules-runtime/.npm/package/node_modules/install/install.js:82:1)
W20160625-20:15:06.557(4)? (STDERR) at node_modules/neo4j-fiber/lib/cursor.js:5:1
=> Exited with code: 8

@akaiworld
Copy link
Author

Seems to be a common problem with this #7298

@laosb
Copy link
Contributor

laosb commented Jun 25, 2016

I think it's not related.

@laosb
Copy link
Contributor

laosb commented Jun 25, 2016

Can you provide a reproduction?

@akaiworld
Copy link
Author

Seems to be a common error concerning future js.
What do u mean by reproduction?

@laosb
Copy link
Contributor

laosb commented Jun 27, 2016

@akaiworld As described there.

@akaiworld
Copy link
Author

I see. Right now I can't cause i have already downgraded to previous version and the developement work goes on. But if I find time to deal with reproduction, I will make it.

@abernix
Copy link
Contributor

abernix commented Jun 28, 2016

future.js "errors" are pretty common but it's simply where the error is being caught and reported – not the actual error. The relevant part of your error is Error: ENOENT, no such file or directory '/node_modules/needle/lib/../package.json' but it looks like sourcing somewhere in neo4j-fiber.

You didn't mention what version you downgraded to, but it's possible that because of various package updates (and changes in NPM/Node versions) you might need to run meteor npm rebuild once you upgrade to the new Meteor version. Also, make sure you also upgrade your NPMs versions using meteor npm update --save.

Another option is to remove your node_modules directory and do a fresh NPM install with meteor npm install.

If you can provide a reproduction, the issue can be reopened.

Thanks! 😄

@abernix abernix closed this as completed Jun 28, 2016
@akaiworld
Copy link
Author

Thank you, I will try your recommendations!

@fawad1985
Copy link

For Meteor version 1.3 and up

$ Meteor npm install --save fibers

Then in your code, lets import the 'Future' variable

import { Future } from 'fibers/future';

@ennea8
Copy link

ennea8 commented Sep 5, 2016

For meteor 1.4.1.1 I use:

Meteor npm install --save fibers

const Future = Npm.require('fibers/future')

When I use import { Future } from 'fibers/future,Future is not defined

@abernix
Copy link
Contributor

abernix commented Sep 14, 2016

@fawad1985 @ennea8 :

Future is not a named export from fibers/future so you would want to just do:

import Future from 'fibers/future';

(without the { and })

@matiasclapera
Copy link

Help me!!!

paki@lubuntu-paki:~/Vulcan$ meteor run
[[[[[ ~/Vulcan ]]]]]

=> Started proxy.
=> Started MongoDB.
W20210328-19:59:52.511(-3)? (STDERR) /home/paki/.meteor/packages/meteor-tool/.2.1.0.yuair9.drob++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20210328-19:59:52.747(-3)? (STDERR) throw(ex);
W20210328-19:59:52.748(-3)? (STDERR) ^
W20210328-19:59:52.748(-3)? (STDERR)
W20210328-19:59:52.749(-3)? (STDERR) Error: Cannot find module './random.js'
W20210328-19:59:52.749(-3)? (STDERR) at makeMissingError (packages/modules-runtime.js:222:12)
W20210328-19:59:52.749(-3)? (STDERR) at Module.resolve (packages/modules-runtime.js:228:17)
W20210328-19:59:52.750(-3)? (STDERR) at Module.moduleLink [as link] (/home/paki/.meteor/packages/modules/.0.16.0.1d4exh9.zo59++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/reify/lib/runtime/index.js:45:25)
W20210328-19:59:52.750(-3)? (STDERR) at module (packages/vulcan:lib/lib/modules/index.js:1:1122)
W20210328-19:59:52.750(-3)? (STDERR) at fileEvaluate (packages/modules-runtime.js:336:7)
W20210328-19:59:52.751(-3)? (STDERR) at Module.require (packages/modules-runtime.js:238:14)
W20210328-19:59:52.751(-3)? (STDERR) at Module.moduleLink [as link] (/home/paki/.meteor/packages/modules/.0.16.0.1d4exh9.zo59++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/reify/lib/runtime/index.js:52:22)
W20210328-19:59:52.751(-3)? (STDERR) at module (packages/vulcan:lib/lib/server/mutators.js:1:334)
W20210328-19:59:52.751(-3)? (STDERR) at fileEvaluate (packages/modules-runtime.js:336:7)
W20210328-19:59:52.752(-3)? (STDERR) at Module.require (packages/modules-runtime.js:238:14)
W20210328-19:59:52.752(-3)? (STDERR) at Module.moduleLink [as link] (/home/paki/.meteor/packages/modules/.0.16.0.1d4exh9.zo59++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/reify/lib/runtime/index.js:52:22)
W20210328-19:59:52.752(-3)? (STDERR) at module (packages/vulcan:lib/lib/server/default_mutations.js:1:115)
W20210328-19:59:52.752(-3)? (STDERR) at fileEvaluate (packages/modules-runtime.js:336:7)
W20210328-19:59:52.752(-3)? (STDERR) at Module.require (packages/modules-runtime.js:238:14)
W20210328-19:59:52.753(-3)? (STDERR) at Module.moduleLink [as link] (/home/paki/.meteor/packages/modules/.0.16.0.1d4exh9.zo59++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/reify/lib/runtime/index.js:52:22)
W20210328-19:59:52.753(-3)? (STDERR) at module (packages/vulcan:lib/lib/server/graphql/collection.js:1:142)
W20210328-19:59:52.753(-3)? (STDERR) at fileEvaluate (packages/modules-runtime.js:336:7)
W20210328-19:59:52.753(-3)? (STDERR) at Module.require (packages/modules-runtime.js:238:14)
W20210328-19:59:52.753(-3)? (STDERR) at Module.moduleLink [as link] (/home/paki/.meteor/packages/modules/.0.16.0.1d4exh9.zo59++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/reify/lib/runtime/index.js:52:22)
W20210328-19:59:52.754(-3)? (STDERR) at module (packages/vulcan:lib/lib/server/graphql/graphql.js:1:860)
W20210328-19:59:52.754(-3)? (STDERR) at fileEvaluate (packages/modules-runtime.js:336:7)
W20210328-19:59:52.754(-3)? (STDERR) at Module.require (packages/modules-runtime.js:238:14)
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.

@filipenevola
Copy link
Collaborator

It's probably a wrong import.

See this error:
Cannot find module './random.js'

@meteor meteor locked as resolved and limited conversation to collaborators Apr 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants