Comments (9)
基础包中
import这个文件platformEmptyDefaultExport.js
基础包中已经import这个文件了,但是还是报这个错
from react-native-multibundler.
参考https://github.com/smallnew/react-native-multibundler/issues/25,里面的方法先试试
from react-native-multibundler.
我这边报的错误是
Unable to resolve module @babel/runtime/helpers/interopRequireDefault
from .../platform.js
: Module @babel/runtime/helpers/interopRequireDefault
does not exist in the Haste module map
from react-native-multibundler.
基础包中
import这个文件platformEmptyDefaultExport.js
from react-native-multibundler.
dalao,the same error with liuyankai1990 i have met.
[email protected]
from react-native-multibundler.
我基础bundle中未包含node_modules_@babel_runtime_helpers_xxx依赖。后来发现是我的基础.js文件写法有问题,具体如下:
- [错误] import "react";
- [正确] import React,{Component} from "react";
@smallnew 感谢指导
from react-native-multibundler.
问题已修复
from react-native-multibundler.
这个问题解决了吗?我这里是demo没啥问题,只要一引入三方库,就会报这个
Requiring unknown module "node_modules_@babel_runtime_helpers_interopRequireDefault"
大佬,打包之后加载业务包,提示这个错误,是什么原因呢?
RN版本0.64.3,demo基础包、业务包打包都没问题,但是只要一引入react-navigation这个三方库,就报这个错,能看到这个错的前提是 useIndex 置为了false,不然看到的是Requiring unknown module xxx,xxx为数字
from react-native-multibundler.
这个问题解决了吗?我这里是demo没啥问题,只要一引入三方库,就会报这个
Requiring unknown module "node_modules_@babel_runtime_helpers_interopRequireDefault"
大佬,打包之后加载业务包,提示这个错误,是什么原因呢?
RN版本0.64.3,demo基础包、业务包打包都没问题,但是只要一引入react-navigation这个三方库,就报这个错,能看到这个错的前提是 useIndex 置为了false,不然看到的是Requiring unknown module xxx,xxx为数字
请问 这个问题最后时怎么解决的
from react-native-multibundler.
Related Issues (20)
- Buz1Activity cannot be cast to androidx.appcompat.app.AppCompatActivity
- RN 0.68.2 以及0.68.3版本使用路径作为ID ,打包出现问题
- useIndex设置为false,加载业务包出错
- rn 0.64 android 打出的jsbundle 有raw文件,ios 没有
- 请问 multibundler/platformNameMap.json 这个文件是如何生成的? HOT 2
- 请问基础bundle需要做更新逻辑吗,如果业务Abundle 依赖基础bundle更新策略是什么呢 HOT 1
- 想要加载其他rn项目的bundle文件应该怎么做呢 HOT 1
- 没有执行预加载的代码会报错 HOT 3
- SmartAssets 本地资源路径 HOT 2
- ModuleIdConfig.json 配置超过index3.js比方说index4打出来的bundle不能用
- 'text' has not been registered,this can happen if*Metro(the local dev server)is run from the wrong folder...... HOT 1
- SmartAssets的问题 HOT 3
- Swfit项目使用0.63.2版本创建RCTBridge对象会卡死 HOT 2
- ios的资源可以更新吗 在拆包后
- iOS远程加载bundle失败的问题 HOT 1
- 使用DEBUG模式调试,出现错误 HOT 6
- English translation
- Hot Reload Mode
- rn 选择0.66,打出的基础包和业务包有问题 HOT 11
- 拆包之后common和业务会分别有一个source Map文件,用于堆栈反混淆。有没有办法将两个source Map文件合并呀?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-multibundler.