taro-todo icon indicating copy to clipboard operation
taro-todo copied to clipboard

编译H5出错

Open gdunser opened this issue 6 years ago • 7 comments

./.temp/components/foot/foot.js Module not found: Can't resolve '@tarojs/components' in '/Users/rain/Documents/source/taro/todo/.temp/components/foot'

gdunser avatar Jun 10 '18 13:06 gdunser

weapp是没问题的

gdunser avatar Jun 10 '18 13:06 gdunser

同样遇到了这个问题。 serve:h5报错。

lambGirl avatar Jun 12 '18 09:06 lambGirl

同问

1271651135 avatar Jul 05 '18 02:07 1271651135

@tarojs/components 这个包没装

luckyadam avatar Jul 05 '18 05:07 luckyadam

按照说明安装依赖,使用命令taro build --type h5 --watch时出现以下错误:

UnhandledPromiseRejectionWarning: Error: Cannot find module './Mime' at Function.Module._resolveFilename (module.js:555:15) at Function.Module._load (module.js:482:25) at Module.require (module.js:604:17) at require (internal/module.js:11:18) at Object. (/Users/arronzhu/Desktop/taro-todo-master/node_modules/mime/index.js:3:12) at Module._compile (module.js:660:30) at Object.Module._extensions..js (module.js:671:10) at Module.load (module.js:573:32) at tryModuleLoad (module.js:513:12) at Function.Module._load (module.js:505:3) (node:11322) 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(). (rejection id: 1) (node:11322) [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.

mrarronz avatar Jul 13 '18 01:07 mrarronz

@luckyadam @mrarronz 我遇到同样的问题。解决吗?

giantss avatar May 09 '19 06:05 giantss

我也碰到了,我开始用yarn创建的项目,中途用npm装了一个包,然后运行就报错,最后npm i重新安装下依赖,就好了。

Vidtion avatar Jul 24 '19 08:07 Vidtion