logologo
指南
实践
配置
插件
案例
博客
生态
Module Federation Examples
Practical Module Federation
Zephyr Cloud
Nx
简体中文
English
指南
实践
配置
插件
案例
博客
Module Federation Examples
Practical Module Federation
Zephyr Cloud
Nx
简体中文
English
logologo

开始

介绍
设置环境
快速上手
功能导航
名词解释
npm 包

基础

运行时

Runtime 接入
Runtime API
Runtime Hooks
Rsbuild Plugin
Rspack 插件
Webpack Plugin
Rspress Plugin
Vite Plugin
Metro
类型提示
命令行工具
样式隔离

数据管理

数据获取
数据缓存
Prefetch

框架

Modern.js
Next.js

部署

使用 Zephyr Cloud 部署

调试

开启调试模式
Chrome Devtool
全局变量

Troubleshooting

概览

运行时

RUNTIME-001
RUNTIME-002
RUNTIME-003
RUNTIME-004
RUNTIME-005
RUNTIME-006
RUNTIME-007
RUNTIME-008
RUNTIME-009

构建

BUILD-001
BUILD-002

类型

概览
TYPE-001
其他
Edit this page on GitHub
Previous PageRUNTIME-003
Next PageRUNTIME-005

Failed to locate remote.

  • Error Code: RUNTIME-004

#原因

找不到匹配的远程模块,该报错可能是由下列x个原因导致:

  1. 未在消费者注册对应生产者信息
  2. requestId 使用了错误的别名或名称
  3. 有注册 beforeRequest hook ,并且没有返回正确的数据

#解决方法

针对原因,有对应的解决方法:

  1. 检查是否在消费者注册了本次请求的生产者信息
  2. 比对注册的生产者信息 (name/alias) 是否和 requestId 一致
  3. 检查项目中是否额外注册 beforeRequest hook ,并修改参数的运行时插件