-
Notifications
You must be signed in to change notification settings - Fork 178
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
Fails to Compile - Need a loader?? #266
Comments
Did you see the Gatsby example for fullPage.js? |
I honestly couldn't get it to work. The instructions on that particular front were a little sparse (kinda finding my own way in this coding thing, please forgive me if I missed something obvious), so I tried cloning the repo and copying over the files I thought were necessary into my project dir. It compiled, but essentially broke the site. Console was a list of errors a mile long. The modified react approach seems easier? |
Try running that exact demo. |
So, in all honesty, I couldn't get your example gatsby repos to run. The only one I could get working was this one, so that's what I ran with. Now, I'm trying to enable autoplay on horizontal sliders, and I'm running into a new error on the callback function afterload.
with the error that fullpageApi is undefined within afterLoad. (Also, please let me know if you would like me to close this issue and start another one with this error.) |
Description
I'm trying to incorporate the fullpage component into my gatsby site. However, I'm running into a curious error (see Terminal Error below). It informs me I need a loader of index.js, but since other js files are running with no problem, I'm a bit flummoxed.
Link to isolated reproduction with no external CSS / JS
[codesandbox.io]
I just replicated the modifications I made in my own code to transform the component to a functional component instead. It works in the sandbox, so I don't think the problem is with the actual modifications, but something on the gatsby side of things, unfortunately. However, I'm still hoping someone knows what the issue might be.
Code
Terminal Error:
Versions
Browser: Brave
Editor: Webstorm
Framework; Gatsby, React
The text was updated successfully, but these errors were encountered: