Open 14850842 opened 6 years ago
@14850842 Does this documentation help at all? https://github.com/khan/aphrodite#server-side-rendering
Yeah I have that working fine when using components built within the same repository. Once I import from our remote component repository I get the error.
Is it possible that you have two different copies of Aphrodite in your bundle? Perhaps one as a nested dependency?
Ok I have made some progress, I am using npm link to link to the local repository of the component library, if I install to the remote library and remove the link the issue is solved.
We have a component library with components styled using aphrodite.
When importing this into a server-side rendered project the components we get the following error:
npm packaged component
SSR Rendered App
If I use an aphrodite styled component within the application it runs with no issue.