Adding 'react/jsx-runtime' to rollup external array saved my day. I think it might be a bug of rollup since react/jsx-runtime is included in react.