uni-app Error: Cannot find module '@dcloudio\uni-mp-kuaishou\lib\uni.plugin.js'

uni-app Error: Cannot find module ‘@dcloudio\uni-mp-kuaishou\lib\uni.plugin.js’

操作步骤:

npx @dcloudio/uvm@latest更新到最新版
Error: Cannot find module ‘@dcloudio\uni-mp-kuaishou\lib\uni.plugin.js’

预期结果:

npx @dcloudio/uvm@latest更新到最新版
Error: Cannot find module ‘@dcloudio\uni-mp-kuaishou\lib\uni.plugin.js’

实际结果:

npx @dcloudio/uvm@latest更新到最新版
Error: Cannot find module ‘@dcloudio\uni-mp-kuaishou\lib\uni.plugin.js’

bug描述:

npx @dcloudio/uvm@latest更新到最新版
Error: Cannot find module ‘@dcloudio\uni-mp-kuaishou\lib\uni.plugin.js’


更多关于uni-app Error: Cannot find module '@dcloudio\uni-mp-kuaishou\lib\uni.plugin.js'的实战教程也可以访问 https://www.itying.com/category-93-b0.html

6 回复

“ON_EXIT” is not exported by “node_modules/@dcloudio/uni-shared/dist/uni-shared.es.js”, imported by “node_modules/@dclou dio/uni-app/dist/uni-app.es.js”.

更多关于uni-app Error: Cannot find module '@dcloudio\uni-mp-kuaishou\lib\uni.plugin.js'的实战教程也可以访问 https://www.itying.com/category-93-b0.html


我也是这个错,楼主解决了吗?

error during build: Error: Cannot find module ‘@dcloudio\uni-mp-kuaishou\lib\uni.plugin.js’ 我也遇到了同样的错误,项目平常好好的,从仓库把项目拉下来,下载依赖,启动项目就报这个错了

请问解决了嘛,我今天也遇到了这个问题

npx @dcloudio/uvm@latest
升级之后部分模块没有升级到最新版本导致的。 npx @dcloudio/uvm@latest执行之后 都改成一致的,就不报错了

The error message you’re encountering, Cannot find module '[@dcloudio](/user/dcloudio)\uni-mp-kuaishou\lib\uni.plugin.js', indicates that the uni-app compiler is unable to locate the specified module. This issue commonly arises when there is a problem with the project dependencies or the uni-app build environment.

Here are some steps you can take to troubleshoot and resolve this issue:


1. Ensure All Dependencies Are Installed

Run the following command in your project directory to ensure all dependencies are installed:

npm install

or if you’re using Yarn:

yarn install

This will install all the dependencies listed in your package.json file.


2. Check the Module Path

The error suggests that the module [@dcloudio](/user/dcloudio)/uni-mp-kuaishou might be missing or incorrectly installed. Verify if the module exists in your node_modules folder.

Navigate to:

node_modules/[@dcloudio](/user/dcloudio)/uni-mp-kuaishou/lib/

Check if the file uni.plugin.js exists. If it doesn’t, proceed to the next step.


3. Reinstall the Module

Try reinstalling the [@dcloudio](/user/dcloudio)/uni-mp-kuaishou module:

npm install [@dcloudio](/user/dcloudio)/uni-mp-kuaishou --save-dev

or with Yarn:

yarn add [@dcloudio](/user/dcloudio)/uni-mp-kuaishou --dev

4. Update uni-app and Related Packages

Ensure that your uni-app and related packages are up to date. Run:

npm update

or with Yarn:

yarn upgrade

5. Check uni-app Configuration

Verify that your package.json and vue.config.js (if applicable) are correctly configured for the Kuaishou mini-program platform. Ensure that the uni-mp-kuaishou module is included in your build process.


6. Clear Cache and Rebuild

Sometimes, cached files can cause issues. Clear the npm cache and rebuild the project:

npm cache clean --force
npm run dev:mp-kuaishou

(Replace dev:mp-kuaishou with the appropriate build command for your project.)


7. Check for Typos or Path Issues

Ensure there are no typos in the module import path. For example, the correct path should be:

[@dcloudio](/user/dcloudio)/uni-mp-kuaishou/lib/uni.plugin.js
回到顶部