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

Error importing from uniforms-unstyled #124

Closed
fomeboy opened this issue Nov 2, 2016 · 4 comments
Closed

Error importing from uniforms-unstyled #124

fomeboy opened this issue Nov 2, 2016 · 4 comments
Assignees
Labels
Type: Bug Bug reports and their fixes

Comments

@fomeboy
Copy link

fomeboy commented Nov 2, 2016

I have installed simple schema and uniforms-unstyled as mentioned on the documentation.
When I try to import AutoForm into my react component I get the following error:

Uncaught TypeError: process.addListener is not a function
at meteorInstall.node_modules.uniforms.lib.components.forms.ValidatedForm.js (http://localhost:3000/packages/modules.js?hash=959453943eda0281ec46503acd9049a67939d5b2:34936:13)
at fileEvaluate (http://localhost:3000/packages/modules-runtime.js?hash=ab7e8d32b6c7b5a5fa7ae1b65e8225c4f9e30223:191:9)
at require (http://localhost:3000/packages/modules-runtime.js?hash=ab7e8d32b6c7b5a5fa7ae1b65e8225c4f9e30223:116:16)
at meteorInstall.node_modules.uniforms.lib.components.forms.ValidatedQuickForm.js (http://localhost:3000/packages/modules.js?hash=959453943eda0281ec46503acd9049a67939d5b2:34702:22)
at fileEvaluate (http://localhost:3000/packages/modules-runtime.js?hash=ab7e8d32b6c7b5a5fa7ae1b65e8225c4f9e30223:191:9)
at require (http://localhost:3000/packages/modules-runtime.js?hash=ab7e8d32b6c7b5a5fa7ae1b65e8225c4f9e30223:116:16)
at meteorInstall.node_modules.uniforms.lib.components.forms.AutoForm.js (http://localhost:3000/packages/modules.js?hash=959453943eda0281ec46503acd9049a67939d5b2:34584:27)
at fileEvaluate (http://localhost:3000/packages/modules-runtime.js?hash=ab7e8d32b6c7b5a5fa7ae1b65e8225c4f9e30223:191:9)
at require (http://localhost:3000/packages/modules-runtime.js?hash=ab7e8d32b6c7b5a5fa7ae1b65e8225c4f9e30223:116:16)
at meteorInstall.node_modules.uniforms.lib.index.js (http://localhost:3000/packages/modules.js?hash=959453943eda0281ec46503acd9049a67939d5b2:32680:17)

Am I overlooking something obvious?

@radekmie radekmie added the Type: Bug Bug reports and their fixes label Nov 2, 2016
@radekmie radekmie self-assigned this Nov 2, 2016
@radekmie
Copy link
Contributor

radekmie commented Nov 2, 2016

It's right here. I'll take care of it, but I'm very curious - which version of Meteor are you using?

@fomeboy
Copy link
Author

fomeboy commented Nov 2, 2016

I am on version 1.4.2

I have installed simple schema and uniforms-unstyled

If I import it inside a react component it shows the error even without calling it after. I am use react-router. Don't know if that's relevant...

@radekmie
Copy link
Contributor

radekmie commented Nov 2, 2016

No, it's not. In previous versions, Meteor provided a noop process.addListener. I'll just add a check, if it's present (you can do it too).

@radekmie
Copy link
Contributor

radekmie commented Nov 2, 2016

Check version 1.4.1.

@radekmie radekmie moved this to Closed in Open Source Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug reports and their fixes
Projects
Archived in project
Development

No branches or pull requests

2 participants