Giter Club home page Giter Club logo

Comments (9)

liuyankai1990 avatar liuyankai1990 commented on June 4, 2024 2

基础包中
import这个文件platformEmptyDefaultExport.js

基础包中已经import这个文件了,但是还是报这个错

from react-native-multibundler.

smallnew avatar smallnew commented on June 4, 2024 1

参考https://github.com/smallnew/react-native-multibundler/issues/25,里面的方法先试试

from react-native-multibundler.

gzqreder avatar gzqreder commented on June 4, 2024

我这边报的错误是
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.

smallnew avatar smallnew commented on June 4, 2024

基础包中
import这个文件platformEmptyDefaultExport.js

from react-native-multibundler.

ruyadelaosan avatar ruyadelaosan commented on June 4, 2024

dalao,the same error with liuyankai1990 i have met.
[email protected]

from react-native-multibundler.

ruyadelaosan avatar ruyadelaosan commented on June 4, 2024

我基础bundle中未包含node_modules_@babel_runtime_helpers_xxx依赖。后来发现是我的基础.js文件写法有问题,具体如下:

  • [错误] import "react";
  • [正确] import React,{Component} from "react";
    @smallnew 感谢指导

from react-native-multibundler.

smallnew avatar smallnew commented on June 4, 2024

问题已修复

from react-native-multibundler.

leeeGreat avatar leeeGreat commented on June 4, 2024

这个问题解决了吗?我这里是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.

vincent-cihan avatar vincent-cihan commented on June 4, 2024

这个问题解决了吗?我这里是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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.