Giter VIP home page Giter VIP logo

Comments (3)

CarGuo avatar CarGuo commented on May 19, 2024

正常来说,如果js已经在asset下生成,应该是配置上去了,还要配置上新的java文件和在AndroidManifest中配置上,具体在项目里应该是 WXPageSampleActivity

from gsygithubappweex.

ZhangLanqiu avatar ZhangLanqiu commented on May 19, 2024

@CarGuo
对于 WXPageSampleActivity 我也已经配置了,忘了说了

mainifest

很奇怪的地方在于,我将您的项目编译运行到我的手机(MX4)上可以正常打开,而且在 android 的 assets/dist 目录下依然只有一个 person.js 文件,可是到了我这里编译运行到手机中在 assets/dist 目录下有两个js文件,正是我在 webpack.common.conf.js 的 entry 下配置的 KGMainPage.js , 所以我也很纳闷,步骤完全一致,但就是报错,更让我觉得不解的在于您的andorid 项目中 person.js 文件中只有区区六七十行 js 代码,而我的两个 js 文件中的每个文件的 js 代码高达 5万多行,您还做了什么其他的配置吗? 我真的找不出来了

from gsygithubappweex.

ZhangLanqiu avatar ZhangLanqiu commented on May 19, 2024

已解决,我将项目版本重新回退到上一个版本,然后重新进行配置,一切正常, 后经过仔细排查发现是在 src/store.js 文件中将 import Vuex from 'vuex' 错写成 import Vuex from 'vue' (我自己都蒙逼啥时候变成 vue 了)导致 Vuex store 初始化失败
PS: 回想以往,store使用正常,不知道为毛会这样,一点印象都没有,怪不得死活找不出来,close issue

from gsygithubappweex.

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.