GithubHelp home page GithubHelp logo

wepy-wechat-demo's People

Contributors

dependabot[bot] avatar gcaufy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wepy-wechat-demo's Issues

tab 的问题,

我在本地调试,tab能切换过去,远程调试也可以,但预览的话,tab就切换不了页面了,这是什么原因?

关于导入微信开发者工具后编译报错——app.js错误: TypeError: Cannot set property 'Promise' of undefined

按照readme操作后,用微信开发者工具导入dist目录,如果项目详情本地设置中将JS编译为ES5,会报错:
app.js错误: TypeError: Cannot set property 'Promise' of undefined at index.js? [sm]:14 at WASubContext.js?t=wechat&s=1706771605796&v=3.3.4:1 at d.runWith (WASubContext.js?t=wechat&s=1706771605796&v=3.3.4:1) at V (WASubContext.js?t=wechat&s=1706771605796&v=3.3.4:1) at r (WASubContext.js?t=wechat&s=1706771605796&v=3.3.4:1) at app.js? [sm]:4 at WASubContext.js?t=wechat&s=1706771605796&v=3.3.4:1 at d.runWith (WASubContext.js?t=wechat&s=1706771605796&v=3.3.4:1) at V (WASubContext.js?t=wechat&s=1706771605796&v=3.3.4:1) at VM589 appservice.js:7(env: Windows,mp,1.06.2401020; lib: 3.3.4)
企业微信截图_17067717604948
企业微信截图_17067717847667

安装好像失败了。

Cloning into 'wepy-wechat-demo'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights

VM137:1 pages/chat.js 出现脚本错误或者未正确调用 Page()

取消勾选es6->es5还是报下列错误?

WAService.js:3 Uncaught Error: module "npm/babel-runtime/regenerator/index.js" is not defined
WAService.js:3 Uncaught Error: module "npm/babel-runtime/core-js/object/get-prototype-of.js" is not defined

tab点击问题

如果当前的tab有列表在滑动,此时点击其他tab的时候不会立即切换,请问有什么解决办法吗

尝试编译2.0分支碰到的问题

尝试1:

git clone 
npm install 
wepy build 

wepy-cli版本 1.7.3

报错如下:

/Users/huixisheng/WorkspacesLab/wepy-wechat-demo/src/app.wpy
  38:16  error  Missing space before value for key 'globalData'  key-spacing

✖ 1 problem (1 error, 0 warnings)

/usr/local/lib/node_modules/wepy-cli/lib/compile-wpy.js:478
            var mainPages = wpy.config.pages.map(function (v) {
                                             ^

TypeError: Cannot read property 'map' of undefined
    at Object.compile (/usr/local/lib/node_modules/wepy-cli/lib/compile-wpy.js:478:46)

尝试2:

https://github.com/Tencent/wepy/tree/2.0.x/packages/cli
npm link 
命令修改为wepy2

➜ wepy-wechat-demo git:(2.0) ✗ wepy2 build

[15:47:58] ERR! init Make sure module "@wepy/compiler-sass" is installed. If not please try "npm install @wepy/compiler-sass --save-dev".
[15:47:58] ERR! init Can't resolve '@wepy/compiler-sass' in '/Users/huixisheng/WorkspacesLab/wepy-wechat-demo'
[15:47:58] ERR! init Make sure module "@wepy/compiler-babel" is installed. If not please try "npm install @wepy/compiler-babel --save-dev".
[15:47:58] ERR! init Can't resolve '@wepy/compiler-babel' in '/Users/huixisheng/WorkspacesLab/wepy-wechat-demo'
[15:47:58] ERR! init Initialize failed

@wepy/compiler-sass包没有发布,手动安装。建议官方发布下

[15:49:43] ERR! babel Message:
[15:49:43] ERR! babel   Plugin/Preset files are not allowed to export objects, only functions. In /Users/huixisheng/WorkspacesLab/wepy-wechat-demo/node_modules/babel-preset-es2015/lib/index.js
[15:49:43] ERR! babel File:
[15:49:43] ERR! babel   /Users/huixisheng/WorkspacesLab/wepy-wechat-demo/src/app.wpy
[15:49:43] ERR! Plugin/Preset files are not allowed to export objects, only functions. In /Users/huixisheng/WorkspacesLab/wepy-wechat-demo/node_modules/babel-preset-es2015/lib/index.js
[15:49:43] ERR! compile Compile failed. Add "--log trace" to see more details

修改

    babel: {
      sourceMap: true,
      presets: [
        "@babel/preset-env",
        // "es2015",
        // "stage-1"
      ],
[15:51:34] ERR! Can't resolve '@wepy/use-promisify' in '/Users/huixisheng/WorkspacesLab/wepy-wechat-demo/src'
[15:51:34] ERR! compile Compile failed. Add "--log trace" to see more details

手动安装 @wepy/use-promisify

[15:52:58] info vendor building vendor
[15:52:58] ERR! TypeError: Cannot read property 'forEach' of undefined
[15:52:58] ERR!     at Compile.scriptDepFix (/Users/huixisheng/WorkspacesLab/wepy/packages/cli/core/plugins/scriptDepFix.js:7:24)
[15:52:58] ERR!     at forEach (/Users/huixisheng/WorkspacesLab/wepy/packages/cli/core/hook.js:34:20)
[15:52:58] ERR!     at Array.forEach (<anonymous>)
[15:52:58] ERR!     at Compile.hookSeq 
...
(/Users/huixisheng/WorkspacesLab/wepy/packages/cli/core/compile.js:243:29)\n    at <anonymous>' }
[15:52:58] ERR! compile Compile failed.

添加判断

    if (Array.isArray(parsed.parser.deps)) {
      parsed.parser.deps.forEach((dep, i) => {

编译通过,预览有报错

image

聊天界面如何实现始终保持滚动条在底部

在实时聊天的时候,我们一般都希望最新的消息在我们可视区域的最底部,那么在小程序中如果需要实现这样的功能该怎么做呢?我运行了一下demo,貌似是没有实现此功能的。
image
上图最后一条消息后面还有一条最新消息被遮挡住了

no such file or directory, scandir '/usr/local/lib/node_modules/wepy-cli/node_modules/node-sass/vendor'

return binding.readdir(pathModule._makeLong(path), options.encoding);
^

Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/wepy-cli/node_modules/node-sass/vendor'
at Error (native)
at Object.fs.readdirSync (fs.js:945:18)
at Object.getInstalledBinaries (/usr/local/lib/node_modules/wepy-cli/node_modules/node-sass/lib/extensions.js:121:13)
at foundBinariesList (/usr/local/lib/node_modules/wepy-cli/node_modules/node-sass/lib/errors.js:20:15)
at foundBinaries (/usr/local/lib/node_modules/wepy-cli/node_modules/node-sass/lib/errors.js:15:5)
at Object.module.exports.missingBinary (/usr/local/lib/node_modules/wepy-cli/node_modules/node-sass/lib/errors.js:45:5)
at module.exports (/usr/local/lib/node_modules/wepy-cli/node_modules/node-sass/lib/binding.js:15:30)
at Object. (/usr/local/lib/node_modules/wepy-cli/node_modules/node-sass/lib/index.js:14:35)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)

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.