1 min readNov 22, 2017
Hi, to fix this `o.default is not a constructor`, you need to adjust your import statement, from:
import Cookies from 'universal-cookie';
to:
import * as Cookies from 'universal-cookie';
Here is a commit I did just now to try it out:
Run the following commands in your machine to see if it works for you too:
git clone https://github.com/evertonrobertoauler/universal-demo-v5.git
cd universal-demo-v5
git checkout cookies
npm install
npm run build
node dist/server.js