Comments (10)
我也是白屏啊(只有tabbar),基础库切换也不起作用啊 是不是跟微信开发者工具的版本有关系啊
刚开始我也不得,把skyline渲染勾勾去掉就好了
from miniprogram-demo.
非常棒的教程,--爱来自瓷器
from miniprogram-demo.
为啥我按照你的教程,小程序工具报错这个:message: NPM packages not found. Please confirm npm packages which need to build are belong to miniprogramRoot
directory. Or you may edit project.config.json's packNpmManually
and packNpmRelationList
appid: touristappid
openid: o6zAJs6H8q9_pTpncB7HYYIWsPXk
ideVersion: 1.06.2308310
osType: win32-x64
time: 2023-11-14 16:33:25
个人遇到的问题及解决过程,(2023年10月24日): 1、本地必须安装:git,npm 2、git clone到本地或download zip后解压,默认根目录为:miniprogram-demo,后续操作全部在根目录执行,miniprogram那个子目录看起来很诱惑,但不需要在这个或其他任何子目录做任何操作或执行命令; 3、微信开发者工具 小程序->导入,导入目录为根目录 ,appID使用测试号,导入后不出意外必定报错,先不管 4、【重要】 打开根目录下的package.json,将"@tencent/eslint-config-wxapp": "^0.5.2" 改为 "eslint-config-wxapp": "^1.0.0" 5、【重要】 打开根目录下的.gitmodules,将[submodule "miniprogram/packageSkylineExamples"]项的 url=xxx 那行改为 url = https://github.com/wechat-miniprogram/awesome-skyline.git 6、【重要】 根目录下执行命令 npm run init --legacy-peer-deps,不要按官方的npm run init,不出意外也是一堆错 7、切回微信开发者工具 工具->构建npm,等一会应该就出现界面了 8、我出现界面后曾出现白屏,只有tabbar,页面无内容,做了两个尝试,右上角详情-本地设置-调试基础库切换到高版本(3.1.3),console里有提示“Skyline 渲染模式在 2.29.2 及以上基础库支持 balabala..”下面有个点此切换模式,目前正常运行
0、还曾遇到过git断开问题,设置了git config --global https.proxy 127.0.0.1:xxx,梯子问题就不细说了,自行搜索
跑个示例这费事,简直天坑 感谢issue中的大佬们的解决方法,虽然都比较细碎,我翻了很多个参考综合解决,特此将完整流程记录
from miniprogram-demo.
我也是白屏啊(只有tabbar),基础库切换也不起作用啊
是不是跟微信开发者工具的版本有关系啊
from miniprogram-demo.
啊,根本跑不起来
from miniprogram-demo.
第七步构建 npm 之后第一次预览会显示页面已失效,再次预览即可正常显示
很棒的教程
from miniprogram-demo.
https://blog.csdn.net/qq_29327729/article/details/130865739
1.修改配置:pageage.json里的 "@tencent/eslint-config-wxapp": "^0.5.2" 改为 "eslint-config-wxapp": "^1.0.0"
2.npm install --legacy-peer-deps
3.npm run init --legacy-peer-deps
4.完成上述步骤后,使用微信开发者工具,点击【工具-构建npm】
from miniprogram-demo.
Related Issues (20)
- 这狗屁不通的项目,都跑不通,一堆报错 HOT 1
- demo能否示意一下,hand-detect里面3d关键点位的显示?感觉直接使用无法正常显示 HOT 2
- 你好,项目跑不起来捏 HOT 2
- 您好,微信小程序大屏适配问题,折叠屏,下载的官方案例,冷启动可支持全屏,热启动或重新进入小程序,就会变窄屏 HOT 1
- 实时人脸检测基于源码无法复现??,但原生的发布小程序可以 HOT 1
- 你好,swiper报错
- app.json报错项目启动不起来噻
- AI的3D坐标点
- 这个demo怎么用到我自己的项目中去呢 HOT 1
- Miniprogram
- 静态图片人脸检测 为什么需要plane 这个参数 是必传的吗?
- 静态图片人脸检测 为什么需要plane 这个参数 是必传的吗? HOT 1
- 2DMarkerAR在IPhone中存在较大偏差 HOT 1
- AR 3D marker的map是什么格式? HOT 4
- 示例跑不出来,解决办法 2024年3月7日
- 想问下VisionKit+Three.js能用后处理吗
- xr-frame 3d marker问题 HOT 1
- 如果Demo运行不起来?【2024-04-09】 HOT 1
- wx.createInferenceSession 创建失败返回2004010错误码的原因?
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 miniprogram-demo.