-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Gatsby Build Bug #641
Comments
You have errors in your console on open.fda.gov. Try commenting out the uglify settings from |
Commenting out the uglify settings had no effect. |
On what? |
It did not expose any errors hidden in the minified environment or provide any apparent change. |
What does your console say now? |
|
Looks like you didn't actually get uglify disabled.
…On Fri, Jan 20, 2017, 10:32 AM Jack Finch ***@***.***> wrote:
Uncaught Error: Minified exception occurred; use the non-minified dev
environment for the full error message and additional helpful warnings. at
invariant (bundle.js:8809) at precacheChildNodes (bundle.js:12012) at
Object.getNodeFromInstance (bundle.js:12088) at Object.didPutListener
(bundle.js:26242) at Object.putListener (bundle.js:13197) at
Object.putListener (bundle.js:17863) at CallbackQueue.notifyAll
(bundle.js:15151) at ReactReconcileTransaction.close (bundle.js:24474) at
ReactReconcileTransaction.closeAll (bundle.js:15839) at
ReactReconcileTransaction.perform (bundle.js:15786)
SimpleEventPlugin.js:620 Uncaught TypeError: Cannot read property 'remove'
of undefined at Object.willDeleteListener (SimpleEventPlugin.js:620) at
Object.deleteAllListeners (EventPluginHub.js:159) at
ReactDOMComponent.unmountComponent (ReactDOMComponent.js:889) at
Object.unmountComponent (ReactReconciler.js:65) at
ReactCompositeComponentWrapper.unmountComponent
(ReactCompositeComponent.js:329) at Object.unmountComponent
(ReactReconciler.js:65) at Object.unmountChildren
(ReactChildReconciler.js:118) at ReactDOMComponent.unmountChildren
(ReactMultiChild.js:325) at ReactDOMComponent.unmountComponent
(ReactDOMComponent.js:887) at Object.unmountComponent
(ReactReconciler.js:65)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#641 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEVh5CpEsIMzlZj8-C8EhsrHDlEqGgsks5rUP3YgaJpZM4LofUX>
.
|
Changed line 99 in webpack.config.js:
|
Looks like uglify was disabled this time. |
I've been tracking a bug in our site which only presents when using the gatsby build process. When running the site with gatsby develop, it functions perfectly.
The issue is that the first time a user visits the page, any internal links won't work on the first click - all subsequent clicks, clicks after page refresh, etc. work fight as long as the site remains cached. Open the site in a new incognito tab and the bug presents again.
The bug can be found at https://open.fda.gov/ and our open source repo is https://github.com/FDA/open.fda.gov .
I'm not positive the issue is in the Gatsby build process, but it seems likely.
The text was updated successfully, but these errors were encountered: