Updated to Vite 5 and getting error "TypeError: mpa is not a function"
Opened this issue · 3 comments
RaminderRandhawa91 commented
After updating to Vite 5 I am getting following error on build
"TypeError: mpa is not a function"
RaminderRandhawa91 commented
Please help me out
lighth7015 commented
It has to do with how the module is exported. This worked for me,
import mpaPlugin from 'vite-plugin-mpa';
// @ts-expect-error
const mpa = mpaPlugin.default;
iTonyYo commented
check this #30 (comment)