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 in render process #27

Closed
flytam opened this issue Oct 25, 2017 · 4 comments
Closed

error in render process #27

flytam opened this issue Oct 25, 2017 · 4 comments

Comments

@flytam
Copy link

flytam commented Oct 25, 2017

I see the docs says that the module can use in both render and main process,but i use the module in main process,it seems to have some error.How can use the module in render process?
b1
b2

@bonavida
Copy link

You can use the module in renderer process the same way you use it in main process. I guess you already imported the module with require on the renderer process. Anyway, it would be really helpful to see the rest of the code, if you don't mind.

@flytam
Copy link
Author

flytam commented Oct 26, 2017

bb2

bb1
@bonavida The rest of my code has nothing correlation. I just copy the demo code in my file entry.I am sure that i have not required the module on other way. You can see the image below. Thanks

@sonnyg
Copy link

sonnyg commented Oct 26, 2017

-- small update here, and my apologies for the noise --

This does not appear to be a problem with electron-store; I believe this is a problem with your webpack config. I have seen similar questions posed on the electron forums, so I might suggest you look there for more general purpose information regarding this issue.

electron discussion

@sindresorhus
Copy link
Owner

Duplicate of #3

@sindresorhus sindresorhus marked this as a duplicate of #3 Nov 7, 2017
Repository owner locked and limited conversation to collaborators Nov 7, 2017
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

4 participants