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
{{ message }}
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
This fails in Node.js because it imports ESM versions of the
@guardian/src-foundations
submodules.Minimal repro on this branch. Clone,
git checkout explainer-atom
then runyarn && yarn ssr
If you want this project to run on Node.js (i.e. server-side rendering), you will need to import CommonJS versions of the
@guardian/src-foundations
submodules in themain
(CommonJS) bundle. You can do this in two ways:/cjs
endpoint at the end of every@guardian/src-foundations/*
import. This is probably not ideal--alias
flag to replace calls to@guardian/src-foundations/*
with@guardian/src-foundations/*/cjs
for thecjs
bundle onlyThe text was updated successfully, but these errors were encountered: