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

failed on build #5

Closed
randyviandaputra opened this issue Jan 10, 2019 · 10 comments
Closed

failed on build #5

randyviandaputra opened this issue Jan 10, 2019 · 10 comments

Comments

@randyviandaputra
Copy link

randyviandaputra commented Jan 10, 2019

I found some errors during the build,
I using react 16.7.0

image

@suhailsulu
Copy link
Owner

suhailsulu commented Jan 10, 2019

I build using react 16.7.0 running command 'yarn run build' and it builds successfully.

image

Did you used this library in any other project or just build this library?

@randyviandaputra
Copy link
Author

randyviandaputra commented Jan 10, 2019

in other project , I use it with Gatsby

@suhailsulu
Copy link
Owner

check this gatsbyjs/gatsby#309

@randyviandaputra
Copy link
Author

randyviandaputra commented Jan 10, 2019

Also this https://www.gatsbyjs.org/docs/debugging-html-builds/#how-to-check-if-code-classlanguage-textwindowcode-is-defined

I use it this way, it's the same, but the error is different
image

@suhailsulu
Copy link
Owner

Can you show me the code how are you importing the library. When i googled your error its seems like issue in importing libraries

@randyviandaputra
Copy link
Author

Can you show me the code how are you importing the library. When i googled your error its seems like issue in importing libraries

image

@suhailsulu
Copy link
Owner

gatsbyjs/gatsby#9038 check this issue

@suhailsulu
Copy link
Owner

image

@randyviandaputra
Copy link
Author

randyviandaputra commented Jan 10, 2019

thanks solved, i check window if not undefined on component
{typeof window !== "undefined" && (<Component/>)}

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

2 participants