You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue loading getState from loadable-components/snap. We're using yarn 1.3.2, node 8.9.3, and loadable-components 1.1.0.
Using import loadable from 'loadable-components'; works just fine in our project, as does attempting to import the loadable-components/server, but if we try to use the snippet for working with snapshots as listed in the Readme:
import { getState } from 'loadable-components/snap'
// Set up for react-snap.
window.snapSaveState = () => getState()
We get the following error:
Module not found: Error: Can't resolve 'loadable-components/snap' in '/app/app'
@ ./app/index.js 7:0-52
@ multi (webpack)-dev-server/client?http://0.0.0.0:8080 webpack/hot/dev-server ./app/index.js
Are we importing wrong? Any thoughts?
The text was updated successfully, but these errors were encountered:
I'm having an issue loading
getState
fromloadable-components/snap
. We're using yarn 1.3.2, node 8.9.3, and loadable-components 1.1.0.Using
import loadable from 'loadable-components';
works just fine in our project, as does attempting to import theloadable-components/server
, but if we try to use the snippet for working with snapshots as listed in the Readme:We get the following error:
Are we importing wrong? Any thoughts?
The text was updated successfully, but these errors were encountered: