-
Notifications
You must be signed in to change notification settings - Fork 9
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
Comments
开发时,进入 client 目录,在此目录下运行相关编译预览或打包命令 |
您好 ,非常感谢你的解答。我按照步骤继续往下进行 遇到如下问题[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), <anonymous>: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), <anonymous>:11:1)
at MiniPlugin.<anonymous> (E:\nbyh\mini-bookkeeping\client\node_modules\@tarojs\mini-runner\dist\plugins\MiniPlugin.js:107:17)
at Generator.next (<anonymous>)
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 那个报错不用管 |
大神 ,为什么这样呢 您帮忙看看
监听文件修改中... Cannot read property 'hooks' of undefined Cannot read property 'hooks' of undefined (node:127932) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'hooks' of undefined |
更新一下git pull一下,删掉node_modules,重新安装一下依赖 |
./src/pages/user/userInfo/index.jsxs deoptimised the styling of "unknown" as it exceeds the max of "500KB".
监听文件修改中... Cannot read property 'hooks' of undefined Cannot read property 'hooks' of undefined (node:12204) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'hooks' of undefined |
更新一下git pull一下,删掉node_modules,重新安装一下依赖 |
确实已经git pull 了, 也删掉重新npm 了 |
大神 现在是这个问题 |
运行这条命令 taro update self 2.0.5 |
taro update self 2.0.5运行这条命令 |
您好 我在编译的时候 一直报错"找不到项目配置文件config/index,请确定当前目录是Taro项目根目录!",是什么原因呢?作为您忠实的粉丝,可否回答一下
The text was updated successfully, but these errors were encountered: