Comments (17)
@omgEn 尝试把happyloader这个注释掉再重新npm install试试看
from react.
@Mathround 你看下控制台报错的是什么,详细的,这个不太可能是client.js报错的,其他的报错影响到了这里
from react.
@Mathround 需要加入 --depth 1 我之前也有类似报错
git clone --depth 1 https://github.com/duxianwei520/react.git
from react.
@Mathround 需要加入 --depth 1 我之前也有类似报错
git clone --depth 1 https://github.com/duxianwei520/react.git
用的这个也无效
from react.
Uncaught Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/happypack/loader.js):
TypeError: Cannot read property 'split' of undefined
react-hot-loader.development.js:294 hot update failed for module "./app/client.js". Last file processed: "".
./app/styles/set.less
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/happypack/loader.js):
client:159 ./app/styles/login.less
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/happypack/loader.js):
from react.
@duxianwei520
{
test: /.(css|less)$/,
use: [
{
loader: MiniCssExtractPlugin.loader,
options: {
hmr: devMode,
reloadAll: devMode,
},
},
// 'happypack/loader?id=happyStyle',
注释这里吗
]
},
我重下了包,报错:
Uncaught Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleParseError: Module parse failed: Unexpected character '@' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
@import './themes/index';
| @import './core/index';
|
at handleParseError (E:\project\react\node_modules\webpack\lib\NormalModule.js:469:19)
at E:\project\react\node_modules\webpack\lib\NormalModule.js:503:5
at E:\project\react\node_modules\webpack\lib\NormalModule.js:358:12
at E:\project\react\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (E:\project\react\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
from react.
from react.
leo@infinity:~/code/m1 $ git clone --depth 1 https://github.com/duxianwei520/react.git Cloning into 'react'... remote: Enumerating objects: 198, done. remote: Counting objects: 100% (198/198), done. remote: Compressing objects: 100% (182/182), done. remote: Total 198 (delta 15), reused 124 (delta 6), pack-reused 0 Receiving objects: 100% (198/198), 438.15 KiB | 148.00 KiB/s, done. Resolving deltas: 100% (15/15), done. leo@infinity:~/code/m1 $ cd react leo@infinity:~/code/m1/react $ npm install > [email protected] install /home/leo/code/m1/react/node_modules/uws > node-gyp rebuild > build_log.txt 2>&1 || exit 0 > [email protected] install /home/leo/code/m1/react/node_modules/husky > node husky install husky > setting up git hooks husky > done > [email protected] postinstall /home/leo/code/m1/react/node_modules/core-js > node postinstall || echo "ignore" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: > https://opencollective.com/core-js > https://www.patreon.com/zloirock Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) added 2466 packages from 1291 contributors and audited 36603 packages in 37.092s 6 packages are looking for funding run `npm fund` for details found 1578 vulnerabilities (1036 low, 27 moderate, 515 high) run `npm audit fix` to fix them, or `npm audit` for details leo@infinity:~/code/m1/react $ npm start > [email protected] start /home/leo/code/m1/react > concurrently "npm run dev" "npm run mock" [0] [0] > [email protected] dev /home/leo/code/m1/react [0] > webpack-dev-server --config ./scripts/webpack.dev.config.js [0] [1] [1] > [email protected] mock /home/leo/code/m1/react [1] > supervisor -w mock ./app/mocks/http.js [1] [1] [1] Running node-supervisor with [1] program './app/mocks/http.js' [1] --watch 'mock' [1] --extensions 'node,js' [1] --exec 'node' [1] [1] Starting child process with 'node ./app/mocks/http.js' [1] Watching directory '/home/leo/code/m1/react/mock' for changes. [1] Press rs for restarting the process. [1] Error retrieving stats for file: /home/leo/code/m1/react/mock [1] listening port 1111 [0] ℹ 「wds」: Project is running at http://localhost:8888/ [0] ℹ 「wds」: webpack output is served from / [0] ℹ 「wds」: Content not from webpack is served from /home/leo/code/m1/react/app [0] ℹ 「wdm」: wait until bundle finished: / [0] ⚠ 「wdm」: Hash: 013efd3efbae9bdb7c11 [0] Version: webpack 4.41.2 [0] Time: 10806ms [0] Built at: 03/23/2020 12:40:06 PM [0] Asset Size Chunks Chunk Names [0] chunks/client.013e.js 558 KiB client [emitted] [immutable] client [0] chunks/client.013e.js.map 359 KiB client [emitted] [dev] client [0] chunks/draft-js.013e.js 567 KiB draft-js [emitted] [immutable] draft-js [0] chunks/draft-js.013e.js.map 611 KiB draft-js [emitted] [dev] draft-js [0] chunks/echarts.013e.js 1.41 MiB echarts [emitted] [immutable] echarts [0] chunks/echarts.013e.js.map 1.61 MiB echarts [emitted] [dev] echarts [0] chunks/vendor.013e.js 5.45 MiB vendor [emitted] [immutable] vendor [0] chunks/vendor.013e.js.map 5.46 MiB vendor [emitted] [dev] vendor [0] css/style.client.css 78 KiB client [emitted] client [0] css/style.client.css.map 59.9 KiB client [emitted] [dev] client [0] css/style.draft-js.css 4.7 KiB draft-js [emitted] draft-js [0] css/style.draft-js.css.map 6.14 KiB draft-js [emitted] [dev] draft-js [0] css/style.vendor.css 381 KiB vendor [emitted] vendor [0] css/style.vendor.css.map 466 KiB vendor [emitted] [dev] vendor [0] index.html 714 bytes [emitted] [0] js/runtime.013efd3efbae9bdb7c11.js 31.2 KiB runtime [emitted] [immutable] runtime [0] js/runtime.013efd3efbae9bdb7c11.js.map 32.6 KiB runtime [emitted] [dev] runtime [0] Entrypoint client = js/runtime.013efd3efbae9bdb7c11.js js/runtime.013efd3efbae9bdb7c11.js.map css/style.draft-js.css chunks/draft-js.013e.js css/style.draft-js.css.map chunks/draft-js.013e.js.map chunks/echarts.013e.js chunks/echarts.013e.js.map css/style.vendor.css chunks/vendor.013e.js css/style.vendor.css.map chunks/vendor.013e.js.map css/style.client.css chunks/client.013e.js css/style.client.css.map chunks/client.013e.js.map [0] [0] multi (webpack)-dev-server/client?http://localhost:8888 (webpack)/hot/dev-server.js ./app/client.js 52 bytes {client} [built] [0] [./app/client.js] 483 bytes {client} [built] [0] [./app/configs/config.js] 784 bytes {client} [built] [0] [./app/configs/router.config.js] 1.34 KiB {client} [built] [0] [./app/middleware/configureStore.js] 772 bytes {client} [built] [0] [./node_modules/@hot-loader/react-dom/index.js] 1.33 KiB {vendor} [built] [0] [./node_modules/react-hot-loader/root.js] 858 bytes {vendor} [built] [0] [./node_modules/react-redux/es/index.js] 230 bytes {vendor} [built] [0] [./node_modules/react/index.js] 190 bytes {vendor} [built] [0] [./node_modules/strip-ansi/index.js] 161 bytes {vendor} [built] [0] [./node_modules/webpack-dev-server/client/index.js?http://localhost:8888] (webpack)-dev-server/client?http://localhost:8888 4.29 KiB {vendor} [built] [0] [./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.51 KiB {vendor} [built] [0] [./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.53 KiB {vendor} [built] [0] [./node_modules/webpack-dev-server/client/utils/createSocketUrl.js] (webpack)-dev-server/client/utils/createSocketUrl.js 2.89 KiB {vendor} [built] [0] [./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.59 KiB {vendor} [built] [0] + 1511 hidden modules [0] [0] WARNING in ./app/pages/base/app/modal/editPassword.js 120:30-43 [0] "export 'fetchPassword' was not found in '@actions/common' [0] @ ./app/pages/base/app/header.js [0] @ ./app/pages/base/app.js [0] @ ./app/pages/base/index.js [0] @ ./app/configs/router.config.js [0] @ ./app/client.js [0] [0] WARNING in ./app/pages/base/app/modal/userInfo.js 72:8-17 [0] "export 'updatePwd' was not found in '@apis/common' [0] @ ./app/pages/base/app/header.js [0] @ ./app/pages/base/app.js [0] @ ./app/pages/base/index.js [0] @ ./app/configs/router.config.js [0] @ ./app/client.js [0] Child html-webpack-plugin for "index.html": [0] 1 asset [0] Entrypoint undefined = index.html [0] [./node_modules/html-webpack-plugin/lib/loader.js!./app/index.html] 760 bytes {0} [built] [0] [./node_modules/lodash/lodash.js] 527 KiB {0} [built] [0] [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {0} [built] [0] [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!app/components/draw/draw.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./app/components/draw/draw.less] 21.3 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!app/components/logo/logo.css: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./app/components/logo/logo.css] 5.85 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!app/styles/RichEditor.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./app/styles/RichEditor.less] 4.75 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!app/styles/base.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./app/images/icon/menu/default.png] 1.27 KiB {mini-css-extract-plugin} [built] [0] [./app/images/icon/menu/icon_duty.png] 597 bytes {mini-css-extract-plugin} [built] [0] [./app/images/icon/menu/icon_pgmb.png] 1.38 KiB {mini-css-extract-plugin} [built] [0] [./app/images/icon/menu/icon_pgmx.png] 1.65 KiB {mini-css-extract-plugin} [built] [0] [./app/images/icon/menu/icon_statistics.png] 545 bytes {mini-css-extract-plugin} [built] [0] [./app/images/icon/menu/icon_xtxg.png] 1.62 KiB {mini-css-extract-plugin} [built] [0] [./app/images/icon/menu/moduleManage.png] 533 bytes {mini-css-extract-plugin} [built] [0] [./app/images/icon/menu/roleManage.png] 1.49 KiB {mini-css-extract-plugin} [built] [0] [./app/images/icon/menu/userManage.png] 1.49 KiB {mini-css-extract-plugin} [built] [0] [./app/images/logo.png] 1.97 KiB {mini-css-extract-plugin} [built] [0] [./app/images/navcontrol.png] 193 bytes {mini-css-extract-plugin} [built] [0] [./app/images/user.jpg] 2.26 KiB {mini-css-extract-plugin} [built] [0] [./app/images/user.png] 2.26 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./app/styles/base.less] 74.4 KiB {mini-css-extract-plugin} [built] [0] + 1 hidden module [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!app/styles/login.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./app/styles/login.less] 7.51 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!app/styles/personalCenter.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./app/styles/personalCenter.less] 2.71 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!app/styles/set.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./app/styles/set.less] 18.1 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/badge/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/badge/style/index.less] 13.3 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/button/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/button/style/index.less] 113 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/checkbox/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/checkbox/style/index.less] 19 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/dropdown/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/dropdown/style/index.less] 22.3 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/empty/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/empty/style/index.less] 2.33 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/form/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/form/style/index.less] 60.6 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/grid/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/grid/style/index.less] 169 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/icon/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/icon/style/index.less] 587 bytes {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/input/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/input/style/index.less] 44.7 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/layout/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/layout/style/index.less] 7.6 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/locale-provider/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/locale-provider/style/index.less] 598 bytes {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/menu/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/menu/style/index.less] 63.1 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/message/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/message/style/index.less] 4.96 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/modal/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/modal/style/index.less] 17.9 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/notification/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/notification/style/index.less] 13.2 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/pagination/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/pagination/style/index.less] 42.6 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/popover/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/popover/style/index.less] 14.7 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/progress/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/progress/style/index.less] 9.97 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/radio/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/radio/style/index.less] 19.6 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/select/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/select/style/index.less] 50.2 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/spin/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/spin/style/index.less] 11.8 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/style/index.less] 121 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/table/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/table/style/index.less] 75.2 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/tooltip/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/tooltip/style/index.less] 12.7 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/antd/es/tree/style/index.less: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/antd/es/tree/style/index.less] 51.1 KiB {mini-css-extract-plugin} [built] [0] Child mini-css-extract-plugin node_modules/happypack/loader.js?id=happyStyle!node_modules/draft-js/dist/Draft.css: [0] Entrypoint mini-css-extract-plugin = * [0] [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built] [0] [./node_modules/happypack/loader.js?id=happyStyle!./node_modules/draft-js/dist/Draft.css] 11.5 KiB {mini-css-extract-plugin} [built] [0] ℹ 「wdm」: Compiled with warnings.
from react.
leo@infinity:~/code/m1/react $ node -v v10.19.0 leo@infinity:~/code/m1/react $ npm -v 6.13.4 leo@infinity:~/code/m1/react $
from react.
你的环境是否和我一样? 我没有在 node v12上跑过
或者就是你的包没下全 防火墙的缘故? 我在国外。
from react.
from react.
from react.
@easyWater
https://github.com/duxianwei520/react
cnpm不靠谱 请看上面链接
from react.
from react.
可以了,谢谢 ------------------ 原始邮件 ------------------ 发件人: "leozhangj1"<[email protected]>; 发送时间: 2020年3月23日(星期一) 中午1:05 收件人: "duxianwei520/react"<[email protected]>; 抄送: "--陌上-℃"<[email protected]>;"Mention"<[email protected]>; 主题: Re: [duxianwei520/react] 项目download下来运行页面提示这样了 (#90) @easyWater https://github.com/duxianwei520/react cnpm不靠谱 请看上面链接 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
是用npm install了就可以了么 我也是这个问题
from react.
在MAC和Window环境下都试过了 都是同样的错误。
from react.
@luckymoment 基本上可以确认你就是npm install由于网络等原因导致依赖包没下载好导致的报错,如果不行就联系我给你发我本地安装好的依赖包,肯定可以跑起来
from react.
Related Issues (20)
- 你好想问下这个打包后,部署到服务器资源加载正常,但是页面空白的 HOT 1
- 修改mock返回数据,不支持热更新?强制刷新了,接口还是返回旧数据 HOT 1
- 本地运行报错 HOT 2
- npm i不了。 HOT 1
- 这项目的 star 是刷出来的吗? HOT 1
- React HOT 3
- 这么多单元测试,真实写项目的时候,有可能吗 HOT 1
- Thanks HOT 1
- 启动报错 HOT 3
- hi
- webpack?
- 有个包好像挂了,浏览器开梯子也打不开
- history间接依赖导致pnpm下载依赖,运行后无法查找的`history/lib/createHashHistory`模块
- Cannot find module history/lib/createHashHistory
- 能告诉我configs/axios下rest这个参数哪里传进来的吗
- 请求地址 HOT 2
- 哥 账号密码是啥 俺随便输然后显示network error HOT 1
- 你好,配置了动态链接库,不是很懂。 HOT 1
- webpack问题 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react.