国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術(shù)文章
文章詳情頁

node.js - 我用react-redux寫的項(xiàng)目,在控制臺(tái)release -cw的時(shí)候顯示錯(cuò)誤了,但是還是能繼續(xù)執(zhí)行(更新了)

瀏覽:173日期:2024-08-04 15:48:03

問題描述

標(biāo)題不能寫的太長,我重新說明一下我的問題吧:)我用react-redux寫了一個(gè)項(xiàng)目,在控制臺(tái)發(fā)布的時(shí)候(-cw監(jiān)聽了),改著改著,就報(bào)錯(cuò)了node.js - 我用react-redux寫的項(xiàng)目,在控制臺(tái)release -cw的時(shí)候顯示錯(cuò)誤了,但是還是能繼續(xù)執(zhí)行(更新了)

Ω [BABEL] Note: The code generator has deoptimised the styling of '/node_modues/antd/dist/antd.js' as it exceeds the max of '100KB'. [ERROR] Cannot read property ’substr’ of undefined

當(dāng)時(shí)我也沒有管他,就繼續(xù)改了,發(fā)現(xiàn)頁面也是可以更新,有變化。然后,我把release -cw關(guān)了,再重新fis3 release 就錯(cuò)誤了,不能下去了(Warning不用管)

E:mavenWorkspacelabsforceFrontEndmodules>fis3 release -cw [INFO] Currently running fis3 (E:SoftwareNodejsnode_globalnode_modules.fis3_npminstallfis33.4.17fis3) δ 1736ms δ 0ms Ω ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. [WARNI] Can’t resolve `id` in file [/static/js/require.js], did you miss `npm install id`?.......................................................................................................................................................................................................................................... [WARNI] Can’t resolve `libs/scrollspy` in file [/widget/sidebarmenus/sidebarmenus.js], did you miss `npm install libs`?..... [WARNI] Can’t resolve `xhr2` in file [/node_modules/reqwest/reqwest.js], did you miss `npm install xhr2`?..............................[BABEL] Note: The code generator has deoptimised the styling of '/node_modules/antd/dist/antd.js' as it exceeds the max of '100KB'. [ERROR] Cannot read property ’substr’ of undefined

請(qǐng)問,我的問題出現(xiàn)的原因是什么呢?心好累

問題解答

回答1:

已找到問題的原因,原來是

import {Button,Input,DatePicker,Form} from ’antd’

出現(xiàn)了問題,不能這么合起來寫,可能會(huì)有各種問題,強(qiáng)烈建議不要偷懶,分開來寫,最宜!!ps.下方的代碼引用是正確的!!

import Button from ’antd/lib/button’;import Input from ’antd/lib/input’;import DatePicker from ’antd/lib/date-picker’;import Form from ’antd/lib/form’;

主站蜘蛛池模板: 广汉市| 高平市| 南宁市| 伽师县| 樟树市| 始兴县| 通河县| 宁安市| 铜梁县| 离岛区| 新田县| 甘泉县| 嘉峪关市| 商洛市| 武强县| 迁安市| 新巴尔虎左旗| 兴隆县| 海宁市| 连山| 疏勒县| 苍山县| 达日县| 新宁县| 左云县| 弥渡县| 荣成市| 通海县| 佛山市| 博爱县| 中卫市| 东方市| 阿瓦提县| 定日县| 望城县| 张家港市| 宝应县| 海盐县| 香格里拉县| 揭东县| 周口市|