Giter Club home page Giter Club logo

Comments (5)

shenxiaodong13 avatar shenxiaodong13 commented on June 9, 2024

2018-10-23 21:54:36.755 [warn][tid:com.facebook.react.JavaScript] Possible Unhandled Promise Rejection (id: 3):
Error: Unable to open URL: file:///var/containers/Bundle/Application/FA35F6C9-8CBD-4D0D-A8C5-2C31B8DFC874/ProjectN.app/assets/WebChart/index.html
createErrorFromErrorData@/var/containers/Bundle/Application/FA35F6C9-8CBD-4D0D-A8C5-2C31B8DFC874/ProjectN.app/main.jsbundle:2011:26
/var/containers/Bundle/Application/FA35F6C9-8CBD-4D0D-A8C5-2C31B8DFC874/ProjectN.app/main.jsbundle:1963:51
__invokeCallback@/var/containers/Bundle/Application/FA35F6C9-8CBD-4D0D-A8C5-2C31B8DFC874/ProjectN.app/main.jsbundle:2514:23
/var/containers/Bundle/Application/FA35F6C9-8CBD-4D0D-A8C5-2C31B8DFC874/ProjectN.app/main.jsbundle:2261:34
__guard@/var/containers/Bundle/Application/FA35F6C9-8CBD-4D0D-A8C5-2C31B8DFC874/ProjectN.app/main.jsbundle:2418:15
invokeCallbackAndReturnFlushedQueue@/var/containers/Bundle/Application/FA35F6C9-8CBD-4D0D-A8C5-2C31B8DFC874/ProjectN.app/main.jsbundle:2260:21
invokeCallbackAndReturnFlushedQueue@[native code]

from react-native-echarts-demo.

shenxiaodong13 avatar shenxiaodong13 commented on June 9, 2024

我在ios打包过程生成bundle的时候 是assets文件夹下自动生成的WebChart,但是打包后似乎没用用到这个路径

from react-native-echarts-demo.

shenxiaodong13 avatar shenxiaodong13 commented on June 9, 2024

发现是RN版本问题,如果更新到最新的0.57.3以后,打生成版包后图标显示不出来,但是用你的下载打生产版是可以显示的,我看了一下你的rn版本是0.55,不知道最新的要怎么处理呢

我的package.json:

{
"name": "chartview",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"bundle-ios":"node node_modules/react-native/local-cli/cli.js bundle --entry-file index.js --platform ios --dev false --bundle-output ./ios/bundle/index.jsbundle --assets-dest ./ios/bundle",
"test": "jest"
},
"dependencies": {
"asap": "^2.0.6",
"number-display": "^1.2.0",
"react": "16.6.0-alpha.8af6728",
"react-native": "0.57.3"
},
"devDependencies": {
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.48.1",
"react-test-renderer": "16.6.0-alpha.8af6728"
},
"jest": {
"preset": "react-native"
}
}

from react-native-echarts-demo.

entronad avatar entronad commented on June 9, 2024

@shenxiaodong13
不是很熟悉ios开发,对你说的打包不太了解

from react-native-echarts-demo.

shenxiaodong13 avatar shenxiaodong13 commented on June 9, 2024

搞定了 需要在webview增加白名单设置才可以在生产版本看到图

from react-native-echarts-demo.

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.