Hi.
i just built scaffolded ant-design-pro project from here.
and i tried build then got /dist folder with index.html, umi.css, umi.js, chunks.
and i typed 'node ./dist/umi.js/'
but it's not working with this message.
"ReferenceError: window is not defined"
i think there is problem when bundle apps.
how do i solve it?
Hi @epochchaser,
You can try with serve: npm i -g serve and then cd to the dist dir and run serve
Hi @epochchaser,
You can try withserve:npm i -g serveand then cd to the dist dir and runserve
thank you. it is working well.
but when i run app with server, there is 404 error almost every request.
you need service!
look https://preview.pro.ant.design/api/currentUser
I have similar issue with @epochchaser .
I use external API, and config proxy in config/config.js
Everything works fine when I run ant design pro with : npm run start:no-mock
But when I deploy in production:
npm run build
serve -s dist

I have the similar issue, some solution ?
+++
Most helpful comment
I have the similar issue, some solution ?