Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好 请教一个问题 "找不到项目配置文件config/index,请确定当前目录是Taro项目根目录!" #30

Open
gz-sky opened this issue Aug 28, 2020 · 11 comments

Comments

@gz-sky
Copy link

gz-sky commented Aug 28, 2020

您好 我在编译的时候 一直报错"找不到项目配置文件config/index,请确定当前目录是Taro项目根目录!",是什么原因呢?作为您忠实的粉丝,可否回答一下

@yidierh
Copy link
Owner

yidierh commented Aug 28, 2020

您好我在编译的时候一直报错“找到项目配置文件config / index,请确定当前目录是Taro项目根目录!”,是什么原因呢?作为您忠实的粉丝,可否回答一下

开发时,进入 client 目录,在此目录下运行相关编译预览或打包命令
使用微信开发者工具调试项目,请将项目 整个文件夹 作为运行目录。 注意: 不是 client 中生成的 dist 文件夹

@gz-sky
Copy link
Author

gz-sky commented Aug 28, 2020 via email

@yidierh
Copy link
Owner

yidierh commented Aug 28, 2020

您好 ,非常感谢你的解答。我按照步骤继续往下进行 遇到如下问题[cid:[email protected]] | 正在编译...[BABEL] Note: The code generator has deoptimised the styling of "E:/nbyh/mini-bookkeeping/client/src/components/chart/ec-canvas/echarts.js" as it exceeds the max of "500KB". [BABEL] Note: The code generator has deoptimised the styling of "unknown" as it exceeds the max of "500KB". 🙅 编译失败. ./src/pages/user/userInfo/index.jsx Module build failed (from ./node_modules/@tarojs/mini-runner/dist/loaders/fileParseLoader.js): SyntaxError: unknown: Unexpected token (12:18) 10 | 11 | class UserInfo extends __BaseComponent {
12 | static $events = ["anonymousFunc0", "anonymousFunc1", "anonymousFunc2"];
| ^ 13 | $usedState = ["$compid__29", "$compid__30", "$compid__31", "$compid__32", "$compid__33", "$compid__34", "$compid__35", "$compid__36", "userInfo", "openSetting", "logOut", "goAbout"]; 14 | 15 | config = { 监听文件修改中... Cannot read property 'hooks' of undefined Cannot read property 'hooks' of undefined (node:9212) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'hooks' of undefined at Watching.handler (E:\nbyh\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\index.js:50:33) at E:\nbyh\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:99:9 at AsyncSeriesHook.eval [as callAsync] (eval at create (E:\nbyh\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :24:1) at AsyncSeriesHook.lazyCompileHook (E:\nbyh\mini-bookkeeping\client\node_modules\tapable\lib\Hook.js:154:20) at Watching._done (E:\nbyh\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:98:28) at E:\nbyh\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:73:19 at Compiler.emitRecords (E:\nbyh\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:499:39) at E:\nbyh\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:54:20 at E:\nbyh\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:485:14 at eval (eval at create (E:\nbyh\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :11:1) at MiniPlugin. (E:\nbyh\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:107:17) at Generator.next () at fulfilled (E:\nbyh\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:5:58) (node:9212) 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:9212) [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. PS E:\nbyh\mini-bookkeeping\client> 可否再看一下

你把node_modules删掉重新装下看看,第一个 echarts 那个报错不用管

@wangguangzhong
Copy link

大神 ,为什么这样呢 您帮忙看看
`./src/pages/user/userInfo/index.jsx
Module build failed (from ./node_modules/@tarojs/mini-runner/dist/loaders/fileParseLoader.js):
SyntaxError: unknown: Unexpected token (12:18)
10 |
11 | class UserInfo extends __BaseComponent {

12 | static $events = ["anonymousFunc0", "anonymousFunc1", "anonymousFunc2"];
| ^
13 | $usedState = ["$compid__29", "$compid__30", "$compid__31", "$compid__32", "$compid__33", "$compid__34", "$compid__35", "$compid__36", "userInfo", "openSetting", "logOut", "goAbout"];
14 |
15 | config = {

监听文件修改中...

Cannot read property 'hooks' of undefined

Cannot read property 'hooks' of undefined

(node:127932) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'hooks' of undefined
at Watching.handler (E:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\index.js:50:33)
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:99:9
at AsyncSeriesHook.eval [as callAsync] (eval at create (E:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :24:1)
at AsyncSeriesHook.lazyCompileHook (E:\mini-bookkeeping\client\node_modules\tapable\lib\Hook.js:154:20)
at Watching._done (E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:98:28)
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:73:19
at Compiler.emitRecords (E:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:499:39)
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:54:20
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:485:14
at eval (eval at create (E:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :11:1)
at MiniPlugin. (E:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:107:17)
at Generator.next ()
at fulfilled (E:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:5:58)
(node:127932) 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:127932) [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.`

@yidierh
Copy link
Owner

yidierh commented Aug 31, 2020

大神 ,为什么这样呢 您帮忙看看
`./src/pages/user/userInfo/index.jsx
Module build failed (from ./node_modules/@tarojs/mini-runner/dist/loaders/fileParseLoader.js):
SyntaxError: unknown: Unexpected token (12:18)
10 |
11 | class UserInfo extends __BaseComponent {

12 | static $events = ["anonymousFunc0", "anonymousFunc1", "anonymousFunc2"];
| ^
13 | $usedState = ["$compid__29", "$compid__30", "$compid__31", "$compid__32", "$compid__33", "$compid__34", "$compid__35", "$compid__36", "userInfo", "openSetting", "logOut", "goAbout"];
14 |
15 | config = {

监听文件修改中...

Cannot read property 'hooks' of undefined

Cannot read property 'hooks' of undefined

(node:127932) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'hooks' of undefined
at Watching.handler (E:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\index.js:50:33)
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:99:9
at AsyncSeriesHook.eval [as callAsync] (eval at create (E:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :24:1)
at AsyncSeriesHook.lazyCompileHook (E:\mini-bookkeeping\client\node_modules\tapable\lib\Hook.js:154:20)
at Watching._done (E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:98:28)
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:73:19
at Compiler.emitRecords (E:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:499:39)
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:54:20
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:485:14
at eval (eval at create (E:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :11:1)
at MiniPlugin. (E:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:107:17)
at Generator.next ()
at fulfilled (E:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:5:58)
(node:127932) 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:127932) [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.`

大神 ,为什么这样呢 您帮忙看看
`./src/pages/user/userInfo/index.jsx
Module build failed (from ./node_modules/@tarojs/mini-runner/dist/loaders/fileParseLoader.js):
SyntaxError: unknown: Unexpected token (12:18)
10 |
11 | class UserInfo extends __BaseComponent {

12 | static $events = ["anonymousFunc0", "anonymousFunc1", "anonymousFunc2"];
| ^
13 | $usedState = ["$compid__29", "$compid__30", "$compid__31", "$compid__32", "$compid__33", "$compid__34", "$compid__35", "$compid__36", "userInfo", "openSetting", "logOut", "goAbout"];
14 |
15 | config = {

监听文件修改中...

Cannot read property 'hooks' of undefined

Cannot read property 'hooks' of undefined

(node:127932) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'hooks' of undefined
at Watching.handler (E:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\index.js:50:33)
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:99:9
at AsyncSeriesHook.eval [as callAsync] (eval at create (E:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :24:1)
at AsyncSeriesHook.lazyCompileHook (E:\mini-bookkeeping\client\node_modules\tapable\lib\Hook.js:154:20)
at Watching._done (E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:98:28)
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:73:19
at Compiler.emitRecords (E:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:499:39)
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:54:20
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:485:14
at eval (eval at create (E:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :11:1)
at MiniPlugin. (E:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:107:17)
at Generator.next ()
at fulfilled (E:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:5:58)
(node:127932) 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:127932) [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.`

更新一下git pull一下,删掉node_modules,重新安装一下依赖

@gz-sky
Copy link
Author

gz-sky commented Aug 31, 2020

./src/pages/user/userInfo/index.jsxs deoptimised the styling of "unknown" as it exceeds the max of "500KB".
Module build failed (from ./node_modules/@tarojs/mini-runner/dist/loaders/fileParseLoader.js):
SyntaxError: unknown: Unexpected token (12:18)
10 |
11 | class UserInfo extends __BaseComponent {

12 | static $events = ["anonymousFunc0", "anonymousFunc1", "anonymousFunc2"];
| ^
13 | $usedState = ["$compid__29", "$compid__30", "$compid__31", "$compid__32", "$compid__33", "$compid__34", "$compid__35", "$compid__36", "userInfo", "openSetting", "logOut", "goAbout"];
14 |
15 | config = {

监听文件修改中...

Cannot read property 'hooks' of undefined

Cannot read property 'hooks' of undefined

(node:12204) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'hooks' of undefined
at Watching.handler (D:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\index.js:50:33)
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:99:9
at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :24:1)
at AsyncSeriesHook.lazyCompileHook (D:\mini-bookkeeping\client\node_modules\tapable\lib\Hook.js:154:20)
at Watching._done (D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:98:28)
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:73:19
at Compiler.emitRecords (D:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:499:39)
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:54:20
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:485:14
at eval (eval at create (D:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :11:1)
at MiniPlugin. (D:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:107:17)
at Generator.next ()
at fulfilled (D:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:5:58)
(node:12204) 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:12204) [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.
大神,我又重新试了一下 还是不行 可以加您微信 方便沟通吗??

@yidierh
Copy link
Owner

yidierh commented Aug 31, 2020

./src/pages/user/userInfo/index.jsxs deoptimised the styling of "unknown" as it exceeds the max of "500KB".
Module build failed (from ./node_modules/@tarojs/mini-runner/dist/loaders/fileParseLoader.js):
SyntaxError: unknown: Unexpected token (12:18)
10 |
11 | class UserInfo extends __BaseComponent {

12 | static $events = ["anonymousFunc0", "anonymousFunc1", "anonymousFunc2"];
| ^
13 | $usedState = ["$compid__29", "$compid__30", "$compid__31", "$compid__32", "$compid__33", "$compid__34", "$compid__35", "$compid__36", "userInfo", "openSetting", "logOut", "goAbout"];
14 |
15 | config = {

监听文件修改中...

Cannot read property 'hooks' of undefined

Cannot read property 'hooks' of undefined

(node:12204) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'hooks' of undefined
at Watching.handler (D:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\index.js:50:33)
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:99:9
at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :24:1)
at AsyncSeriesHook.lazyCompileHook (D:\mini-bookkeeping\client\node_modules\tapable\lib\Hook.js:154:20)
at Watching._done (D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:98:28)
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:73:19
at Compiler.emitRecords (D:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:499:39)
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:54:20
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:485:14
at eval (eval at create (D:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :11:1)
at MiniPlugin. (D:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:107:17)
at Generator.next ()
at fulfilled (D:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:5:58)
(node:12204) 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:12204) [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.
大神,我又重新试了一下 还是不行 可以加您微信 方便沟通吗??

更新一下git pull一下,删掉node_modules,重新安装一下依赖

@gz-sky
Copy link
Author

gz-sky commented Aug 31, 2020

./src/pages/user/userInfo/index.jsxs deoptimised the styling of "unknown" as it exceeds the max of "500KB".
Module build failed (from ./node_modules/@tarojs/mini-runner/dist/loaders/fileParseLoader.js):
SyntaxError: unknown: Unexpected token (12:18)
10 |
11 | class UserInfo extends __BaseComponent {

12 | static $events = ["anonymousFunc0", "anonymousFunc1", "anonymousFunc2"];
| ^
13 | $usedState = ["$compid__29", "$compid__30", "$compid__31", "$compid__32", "$compid__33", "$compid__34", "$compid__35", "$compid__36", "userInfo", "openSetting", "logOut", "goAbout"];
14 |
15 | config = {

监听文件修改中...
Cannot read property 'hooks' of undefined
Cannot read property 'hooks' of undefined
(node:12204) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'hooks' of undefined
at Watching.handler (D:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\index.js:50:33)
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:99:9
at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :24:1)
at AsyncSeriesHook.lazyCompileHook (D:\mini-bookkeeping\client\node_modules\tapable\lib\Hook.js:154:20)
at Watching._done (D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:98:28)
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:73:19
at Compiler.emitRecords (D:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:499:39)
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:54:20
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:485:14
at eval (eval at create (D:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :11:1)
at MiniPlugin. (D:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:107:17)
at Generator.next ()
at fulfilled (D:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:5:58)
(node:12204) 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:12204) [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.
大神,我又重新试了一下 还是不行 可以加您微信 方便沟通吗??

更新一下git pull一下,删掉node_modules,重新安装一下依赖

确实已经git pull 了, 也删掉重新npm 了

@gz-sky
Copy link
Author

gz-sky commented Sep 1, 2020

@yidierh
Copy link
Owner

yidierh commented Sep 8, 2020

./src/pages/user/userInfo/index.jsxs deoptimised the styling of "unknown" as it exceeds the max of "500KB".
Module build failed (from ./node_modules/@tarojs/mini-runner/dist/loaders/fileParseLoader.js):
SyntaxError: unknown: Unexpected token (12:18)
10 |
11 | class UserInfo extends __BaseComponent {

12 | static $events = ["anonymousFunc0", "anonymousFunc1", "anonymousFunc2"];
| ^
13 | $usedState = ["$compid__29", "$compid__30", "$compid__31", "$compid__32", "$compid__33", "$compid__34", "$compid__35", "$compid__36", "userInfo", "openSetting", "logOut", "goAbout"];
14 |
15 | config = {

监听文件修改中...
Cannot read property 'hooks' of undefined
Cannot read property 'hooks' of undefined
(node:12204) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'hooks' of undefined
at Watching.handler (D:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\index.js:50:33)
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:99:9
at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :24:1)
at AsyncSeriesHook.lazyCompileHook (D:\mini-bookkeeping\client\node_modules\tapable\lib\Hook.js:154:20)
at Watching._done (D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:98:28)
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:73:19
at Compiler.emitRecords (D:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:499:39)
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:54:20
at D:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:485:14
at eval (eval at create (D:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :11:1)
at MiniPlugin. (D:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:107:17)
at Generator.next ()
at fulfilled (D:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:5:58)
(node:12204) 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:12204) [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.
大神,我又重新试了一下 还是不行 可以加您微信 方便沟通吗??

更新一下git pull一下,删掉node_modules,重新安装一下依赖

确实已经git pull 了, 也删掉重新npm 了

运行这条命令 taro update self 2.0.5

@yidierh
Copy link
Owner

yidierh commented Sep 8, 2020

大神 ,为什么这样呢 您帮忙看看
`./src/pages/user/userInfo/index.jsx
Module build failed (from ./node_modules/@tarojs/mini-runner/dist/loaders/fileParseLoader.js):
SyntaxError: unknown: Unexpected token (12:18)
10 |
11 | class UserInfo extends __BaseComponent {

12 | static $events = ["anonymousFunc0", "anonymousFunc1", "anonymousFunc2"];
| ^
13 | $usedState = ["$compid__29", "$compid__30", "$compid__31", "$compid__32", "$compid__33", "$compid__34", "$compid__35", "$compid__36", "userInfo", "openSetting", "logOut", "goAbout"];
14 |
15 | config = {

监听文件修改中...

Cannot read property 'hooks' of undefined

Cannot read property 'hooks' of undefined

(node:127932) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'hooks' of undefined
at Watching.handler (E:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\index.js:50:33)
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:99:9
at AsyncSeriesHook.eval [as callAsync] (eval at create (E:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :24:1)
at AsyncSeriesHook.lazyCompileHook (E:\mini-bookkeeping\client\node_modules\tapable\lib\Hook.js:154:20)
at Watching._done (E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:98:28)
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:73:19
at Compiler.emitRecords (E:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:499:39)
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Watching.js:54:20
at E:\mini-bookkeeping\client\node_modules\webpack\lib\Compiler.js:485:14
at eval (eval at create (E:\mini-bookkeeping\client\node_modules\tapable\lib\HookCodeFactory.js:33:10), :11:1)
at MiniPlugin. (E:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:107:17)
at Generator.next ()
at fulfilled (E:\mini-bookkeeping\client\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:5:58)
(node:127932) 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:127932) [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.`

taro update self 2.0.5运行这条命令

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants