我正在尝试在我的React-Electron项目中添加Metro ui CSS CSS框架

时间:2019-04-07 07:02:07

标签: reactjs css-frameworks metro-ui-css

我正在尝试将Metro UI CSS框架添加到我的react-electron项目中,但是我无法添加metro.js文件。

我试图在React的index.js中添加一个metro.js文件,并试图添加一个index.html文件,但是两者都给出了不同的错误。

index.js中,我得到了这些errors.

12:19:48 PM react.1   |  Failed to compile.
12:19:48 PM react.1   |  ./src/css/mui/js/metro.js
12:19:48 PM react.1   |    Line 8:      'define' is not defined                                         no-undef
12:19:48 PM react.1   |    Line 9:      'define' is not defined                                         no-undef
12:19:48 PM react.1   |    Line 11:     'jQuery' is not defined                                         no-undef
12:19:48 PM react.1   |    Line 352:    'METRO_MEDIA' is not defined                                    no-undef
12:19:48 PM react.1   |    Line 363:    'METRO_CLOAK_REMOVE' is not defined                             no-undef
12:19:48 PM react.1   |    Line 368:    'METRO_CLOAK_REMOVE' is not defined                             no-undef
12:19:48 PM react.1   |    Line 403:    'METRO_HOTKEYS_BUBBLE_UP' is not defined                        no-undef
12:19:48 PM react.1   |    Line 557:    'METRO_MEDIA' is not defined                                    no-undef
12:19:48 PM react.1   |    Line 568:    'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 2050:   'METRO_WEEK_START' is not defined                               no-undef
12:19:48 PM react.1   |    Line 2279:   'METRO_HOTKEYS_FILTER_INPUT_ACCEPTING_ELEMENTS' is not defined  no-undef
12:19:48 PM react.1   |    Line 2280:   'METRO_HOTKEYS_FILTER_TEXT_INPUTS' is not defined               no-undef
12:19:48 PM react.1   |    Line 2281:   'METRO_HOTKEYS_FILTER_CONTENT_EDITABLE' is not defined          no-undef
12:19:48 PM react.1   |    Line 3659:   'METRO_THROWS' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 4151:   'METRO_MEDIA' is not defined                                    no-undef
12:19:48 PM react.1   |    Line 4155:   'METRO_MEDIA' is not defined                                    no-undef
12:19:48 PM react.1   |    Line 4159:   'METRO_MEDIA' is not defined                                    no-undef
12:19:48 PM react.1   |    Line 4159:   'METRO_MEDIA' is not defined                                    no-undef
12:19:48 PM react.1   |    Line 4159:   'METRO_MEDIA' is not defined                                    no-undef
12:19:48 PM react.1   |    Line 4268:   Unexpected use of 'location'                                    no-restricted-globals
12:19:48 PM react.1   |    Line 4268:   Unexpected use of 'location'                                    no-restricted-globals
12:19:48 PM react.1   |    Line 4268:   Unexpected use of 'location'                                    no-restricted-globals
12:19:48 PM react.1   |    Line 4357:   'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 5599:   'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 5600:   'METRO_WEEK_START' is not defined                               no-undef
12:19:48 PM react.1   |    Line 5634:   'METRO_DATE_FORMAT' is not defined                              no-undef
12:19:48 PM react.1   |    Line 6512:   'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 6514:   'METRO_DATE_FORMAT' is not defined                              no-undef
12:19:48 PM react.1   |    Line 6526:   'METRO_WEEK_START' is not defined                               no-undef
12:19:48 PM react.1   |    Line 6946:   'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 7909:   'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 8063:   'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 9117:   'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 9129:   'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 9179:   'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 9537:   'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 13453:  'target' is not defined                                         no-undef
12:19:48 PM react.1   |    Line 13868:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 14396:  'METRO_TIMEOUT' is not defined                                  no-undef
12:19:48 PM react.1   |    Line 14397:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 14425:  'METRO_TIMEOUT' is not defined                                  no-undef
12:19:48 PM react.1   |    Line 14426:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 14548:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 16407:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 17983:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 18375:  Unexpected use of 'history'                                     no-restricted-globals
12:19:48 PM react.1   |    Line 18723:  'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 20221:  'item' is not defined                                           no-undef
12:19:48 PM react.1   |    Line 20440:  Unexpected use of 'pageYOffset'                                 no-restricted-globals
12:19:48 PM react.1   |    Line 20441:  Unexpected use of 'pageXOffset'                                 no-restricted-globals
12:19:48 PM react.1   |    Line 20696:  'METRO_SCROLL_MULTIPLE' is not defined                          no-undef
12:19:48 PM react.1   |    Line 21751:  'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 21764:  'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 21835:  'METRO_LOCALE' is not defined                                   no-undef
12:19:48 PM react.1   |    Line 22212:  'METRO_TIMEOUT' is not defined                                  no-undef
12:19:48 PM react.1   |    Line 22241:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 22245:  'METRO_ANIMATION_DURATION' is not defined                       no-undef
12:19:48 PM react.1   |    Line 22908:  'duration' is not defined                                       no-undef
12:19:48 PM react.1   |    Line 25548:  'METRO_INIT' is not defined                                     no-undef

当我添加index.html时,出现"Uncaught SyntaxError: Unexpected token <"的语法错误

它应该加载没有错误

0 个答案:

没有答案