Git Product home page Git Product logo

Comments (5)

JuneAndGreen avatar JuneAndGreen commented on July 18, 2024

https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html 参考这个文档来使用 npm 组件,有两个会经常被遗漏的地方:
1、基础库需要版本 2.2.1 或以上、开发者工具需要 1.02.1808300 或以上
2、本地配置里是否有勾选 “使用 npm 模块”

看看这两个点是否符合?

from kbone.

ly525 avatar ly525 commented on July 18, 2024

嗯,已经检查。我下载了vue模板项目,重新运行了,没有这个问题了。非常感谢, 有问题的话,再请教

from kbone.

eyea avatar eyea commented on July 18, 2024

我遇到一个同样的问题 JuneAndGreen同学提到符合,如图:
image

===
image

===
image

===
但是仍然存在问题:

image

from kbone.

JuneAndGreen avatar JuneAndGreen commented on July 18, 2024

@eyea 还有一种可能,工具没有监听到文件变化导致,通常是开了工具后再跑 npm install 再进行 npm 构建可能复现。这种可以尝试一下重启工具,一般可以得到解决。

from kbone.

eyea avatar eyea commented on July 18, 2024

@JuneAndGreen 感谢回答,已经处理好了。

from kbone.

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.