codebandits / react-app-rewire-css-modules

MIT License
69 stars 51 forks source link

TypeError: Cannot destructure property `index` of 'undefined' or 'null' #17

Closed tantaiMoon closed 5 years ago

tantaiMoon commented 6 years ago

`
----------- env -------------
D:\YTPro\YTNews-201808\ReceptionSystem\yue-admin-fe\node_modules_react-app-rewire-less-modules@1.1.0@react-app-rewire-less-modules\index.js:25
const { index, rules } = findIndexAndRules(rulesSource, ruleMatcher);
^

TypeError: Cannot destructure property index of 'undefined' or 'null'.
at findRule (D:\YTPro\YTNews-201808\ReceptionSystem\yue-admin-fe\node_modules_react-app-rewire-less-modules@1.1.0@react-app-rewire-less-modules\index.js:25:28)
at D:\YTPro\YTNews-201808\ReceptionSystem\yue-admin-fe\node_modules_react-app-rewire-less-modules@1.1.0@react-app-rewire-less-modules\index.js:60:37
at Object.override [as webpack] (D:\YTPro\YTNews-201808\ReceptionSystem\yue-admin-fe\config-overrides.js:43:4)
at Object. (D:\YTPro\YTNews-201808\ReceptionSystem\yue-admin-fe\node_modules_react-app-rewired@1.5.2@react-app-rewired\scripts\start.js:13:13)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:266:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3) ` How to solve this problem, I can't understand its final solution.

weiq commented 5 years ago

me too

tantaiMoon commented 5 years ago
font{
    line-height: 1.6;
}
ul,ol{
    padding-left: 20px;
    list-style-position: inside;
}

        If your operating system is Windows, then you need to install the genuine Professional. This is my solution.

                            wangpengbin

                                tantaiqiuyue@gmail.com

    签名由
    网易邮箱大师
    定制

On 10/30/2018 10:13,魏小雨<notifications@github.com> wrote: 

me too

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

lnhrdt commented 5 years ago

Closing this issue and archiving this project in favor of Create React App's native support for CSS Modules introduced in v2.