Comments (4)
发生了同样的问题 但在Taro 版本更新至V3.1.1后解决
from patrick-wechat.
发生了同样的问题 但在Taro 版本更新至V3.1.1后解决
将taro版本安装成3.1.1成功解决,感谢建议。
from patrick-wechat.
首先看看本地是否安装了taro,然后核对一下版本,最好和项目的taro版本一致(3.0.x)。
taro -v
如果不一致建议回退到3.0版本,因为本项目还没升级到最新taro cli
from patrick-wechat.
已将taro回退到3.0.7,开始生成project.config.json了,但是出现了“ Cannot read property 'isSupportRecursive' of undefined”的错误提示orz,请问是否知道这个的解决方案?
话说会不会和node.js的版本有关系?我现在的相关框架版本如下:
👽 Taro v3.0.7
Taro CLI 3.0.7 environment info:
System:
OS: Windows 10
Binaries:
Node: 14.16.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.12 - C:\Program Files\nodejs\npm.CMD
报错具体log如下:
Duplicate of
$ npm run build:weapp -- --watch
[email protected] build:weapp D:\Document\Works\WeChat\example\patrick-wechat-master
taro build --type weapp "--watch"
👽 Taro v3.0.7
Tips: 预览模式生成的文件较大,设置 NODE_ENV 为 production 可以开启压缩。
Example:
$ set NODE_ENV=production && taro build --type weapp --watch
生成 工具配置 D:\Document\Works\WeChat\example\patrick-wechat-master\dist/project.config.json
(node:2312) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'isSupportRecursive' of undefined
at new TaroMiniPlugin (D:\Document\Works\WeChat\example\patrick-wechat-master\node_modules@tarojs\mini-runner\src\plugins\MiniPlugin.ts:134:18)
at D:\Document\Works\WeChat\example\patrick-wechat-master\node_modules\webpack-chain\src\Plugin.js:13:18
at Object.toConfig (D:\Document\Works\WeChat\example\patrick-wechat-master\node_modules\webpack-chain\src\Plugin.js:47:22)
at D:\Document\Works\WeChat\example\patrick-wechat-master\node_modules\webpack-chain\src\Config.js:125:61
at Array.map ()
at module.exports.toConfig (D:\Document\Works\WeChat\example\patrick-wechat-master\node_modules\webpack-chain\src\Config.js:125:40)
at module.exports.toString (D:\Document\Works\WeChat\example\patrick-wechat-master\node_modules\webpack-chain\src\Config.js:137:41)
at Kernel. (C:\Users\Aquamarine\AppData\Roaming\npm\node_modules@tarojs\cli\node_modules@tarojs\service\dist\Kernel.js:185:54)
at Generator.next ()
at C:\Users\Aquamarine\AppData\Roaming\npm\node_modules@tarojs\cli\node_modules@tarojs\service\dist\Kernel.js:8:71
at new Promise ()
at __awaiter (C:\Users\Aquamarine\AppData\Roaming\npm\node_modules@tarojs\cli\node_modules@tarojs\service\dist\Kernel.js:4:12)
at Kernel.applyPlugins (C:\Users\Aquamarine\AppData\Roaming\npm\node_modules@tarojs\cli\node_modules@tarojs\service\dist\Kernel.js:171:16)
at C:\Users\Aquamarine\AppData\Roaming\npm\node_modules@tarojs\cli\src\presets\commands\build.ts:69:25
at Generator.next ()
at C:\Users\Aquamarine\AppData\Roaming\npm\node_modules@tarojs\cli\dist\presets\commands\build.js:8:71
(Use node --trace-warnings ...
to show where the warning was created)
(node:2312) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:2312) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Done in 11.02s.
from patrick-wechat.
Related Issues (8)
- 想问一下如果向后端发送请求的话代码应该在哪? HOT 2
- 文件咨询 HOT 1
- 请问作者还计划加入其它表达组件么? HOT 2
- Roadmap
- 小白问 HOT 2
- 装不上sass啊 HOT 5
- 请问是否有办法将该项目中f2-canvase画出的图设置为随View组件移动? 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 patrick-wechat.