Comments (5)
https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html 参考这个文档来使用 npm 组件,有两个会经常被遗漏的地方:
1、基础库需要版本 2.2.1 或以上、开发者工具需要 1.02.1808300 或以上
2、本地配置里是否有勾选 “使用 npm 模块”
看看这两个点是否符合?
from kbone.
嗯,已经检查。我下载了vue模板项目,重新运行了,没有这个问题了。非常感谢, 有问题的话,再请教
from kbone.
我遇到一个同样的问题 JuneAndGreen同学提到符合,如图:
===
但是仍然存在问题:
from kbone.
@eyea 还有一种可能,工具没有监听到文件变化导致,通常是开了工具后再跑 npm install 再进行 npm 构建可能复现。这种可以尝试一下重启工具,一般可以得到解决。
from kbone.
@JuneAndGreen 感谢回答,已经处理好了。
from kbone.
Related Issues (20)
- Event 构造函数参数问题 HOT 3
- 使用的node版本过低问题 HOT 2
- 引入react-native-web后,样式无法生效 HOT 2
- 现有的web应用vue组件style包含scoped属性,不改源代码的情况下,怎么在打包的时候去掉scoped HOT 4
- vue3 使用 vue-router 时报错了
- Component is not fount HOT 8
- 项目采用了混合开发,generate.app设置成noemit模式,现在进入页面一直空白也不报错,不知道什么原因 HOT 2
- 小程序自定义组件无法正确编译 HOT 1
- 组件样式不能用scoped,打包出来的样式都是全局的,会造成相互污染,请问有办法避免吗? HOT 1
- 小程序头像昵称填写问题 HOT 15
- 在wx-catch中 click事件无效,触发不了 HOT 2
- 由于扩展库没有更新,导致小程序头像填写能力有问题, HOT 12
- touchMove的时候 e.preventDefault无效 HOT 10
- Demo23 新增的defaultTargetUrl 传入不带 origin 的 url,会影响原来页面的origin? HOT 4
- 自定义app.js中 onShow中拿到的参数没有实时更新? HOT 2
- 使用moveToLocation方法问题 HOT 5
- build mp - 小程序开发工具预览失败 HOT 1
- ios真机调试报错 selector = selector.replace(regexp, onProcess) HOT 1
- npm run build,h5空白 HOT 1
- vue-cli-plugin-kbone 是不是不支持webpack5项目 HOT 2
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 kbone.