structor icon indicating copy to clipboard operation
structor copied to clipboard

Webpack config was not found.

Open heianqishizhisuiyuan opened this issue 7 years ago • 2 comments

Open http://localhost:2222/structor/ it tip" Cannot GET /structor-deskpage/home ",
and I change the line in package.json file in scripts section: "structor": "structor" to "structor": "structor -v"; Then I " npm run structor" ,it tip "Error happened during server initialization: Webpack config was not found. TypeError: webpack.NoEmitOnErrorsPlugin is not a constructor Structor has been started successfully."

step: 1.into my project "H:\fxglweb\fxglweb-home"; 2.npm install structor; 3.npm install cross-env and change package.json "start":"cross-env NODE_ENV=src better-npm-run start" 4.npm run struct.

my package.json: { "name": "xweb-home-fxgl", "version": "2.0.1", "description": "Xweb Framework - fxgl", "private": true, "homepage": "", "keywords": [ "react", "react-component", "framework", "frontend" ], "bugs": { "url": "" }, "main": "./src/index.js", "files": [ "dist" ], "licenses": [ { "type": "CompanyLicense", "url": "" } ], "engines": { "npm": ">=4" }, "scripts": { "start": "cross-env NODE_ENV=src better-npm-run start", "compile": "better-npm-run compile", "clean": "echo "Info: 清理..." && node ./node_modules/rimraf/bin -rf dist && mkdir dist", "dev": "better-npm-run dev", "dist": "npm run deploy:prod", "deploy": "better-npm-run deploy", "deploy:dev": "echo "Info: 编译开发环境..." && better-npm-run deploy:dev", "deploy:prod": "echo "Info: 编译正式环境..." && better-npm-run deploy:prod", "test": "echo "Info: 测试" && cross-env NODE_ENV=production test", "test:dev": "npm run test -- --watch", "build:api": "aglio -i docs/api/index.apib -o docs/api/index.html", "analyze": "echo "Info: 使用包分析器进行分析" && cross-env NODE_ENV=development webpack --config webpack.dev.config.js --analyze --progress --colors", "lint": "echo "Info: eslint检查" && better-npm-run lint", "docs:clean": "rimraf _book", "docs:prepare": "gitbook install", "docs:build": "npm run docs:prepare && gitbook build -g yelouafi/redux-saga", "docs:watch": "npm run docs:prepare && gitbook serve", "docs:publish": "npm run docs:clean && npm run docs:build && cd _book && git init && git commit --allow-empty -m 'update book' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'update book' && git push [email protected]:yelouafi/redux-saga gh-pages --force", "structor": "structor -v" }, "betterScripts": { "compile": { "command": "node --max_old_space_size=4096 bin/compile", "env": { "DEBUG": "app:" } }, "dev": { "command": "nodemon bin/dev-server --ignore dist --ignore coverage --ignore tests --ignore src", "env": { "NODE_ENV": "development", "DEBUG": "app:" } }, "deploy": { "command": "npm run clean && npm run compile", "env": { "DEBUG": "app:" } }, "deploy:dev": { "command": "npm run deploy", "env": { "NODE_ENV": "development", "DEBUG": "app:" } }, "deploy:prod": { "command": "npm run deploy", "env": { "NODE_ENV": "production", "DEBUG": "app:" } }, "start": { "command": "node --max_old_space_size=4096 bin/dev-server", "env": { "DEBUG": "app:" } }, "lint": { "command": "node ./node_modules/eslint/bin/eslint --ext .js,.jsx src", "env": { "NODE_ENV": "development" } }, "test": { "command": "node ./node_modules/karma/bin/karma start config/karma.config", "env": { "NODE_ENV": "test", "DEBUG": "app:*" } } }, "dependencies": { "@xweb/xweb": "^1.0.1-beta6", "@xweb/xweb-components": "0.8.62", "@xweb/xweb-dict": "0.8.76-col", "@xweb/xweb-dict-grid": "0.8.53-col", "@xweb/xweb-dict-help": "0.8.79", "@xweb/xweb-style-aggrid": "^0.0.4", "@xweb/xweb-utils": "^1.0.15", "antd": "^2.8.3", "classnames": "^2.2.5", "echarts": "^3.5.1", "file-saver": "^1.3.3", "global": "^4.3.1", "jquery": "^3.2.1", "loadjs": "^3.5.0", "lodash": "^4.17.4", "moment": "^2.18.1", "normalizr": "^3.2.2", "promise-polyfill": "^6.0.2", "qs": "^6.4.0", "rc-banner-anim": "^0.5.11", "rc-queue-anim": "^0.13.3", "rc-scroll-anim": "^1.0.3", "rc-tween-one": "^1.1.3", "react": "^15.4.2", "react-dom": "^15.4.2", "react-draggable": "^2.2.6", "react-helmet": "^5.0.2", "react-highlight-words": "^0.8.0", "react-intl": "^2.2.3", "react-markdown": "^2.4.6", "react-motion": "^0.5.0", "react-window-resize-listener": "^1.1.0", "redbox-react": "^1.3.4", "reselect": "^3.0.0", "xss": "^0.3.3" }, "devDependencies": { "@xweb/babel-plugin-xweb-dmr": "0.8.1", "@xweb/babel-plugin-xweb-hmr": "1.3.8", "autoprefixer": "^6.7.7", "babel-core": "^6.24.0", "babel-eslint": "^7.2.1", "babel-loader": "^6.4.1", "babel-plugin-add-module-exports": "^0.2.1", "babel-plugin-import": "^1.1.1", "babel-plugin-react-transform": "^2.0.2", "babel-plugin-transform-decorators-legacy": "^1.3.4", "babel-plugin-transform-do-expressions": "^6.22.0", "babel-plugin-transform-object-assign": "^6.22.0", "babel-plugin-transform-runtime": "^6.23.0", "babel-polyfill": "^6.23.0", "babel-preset-es2015": "^6.24.0", "babel-preset-latest": "^6.24.0", "babel-preset-react": "^6.23.0", "babel-preset-react-hmre": "^1.1.1", "babel-preset-stage-0": "^6.22.0", "better-npm-run": "0.0.15", "chalk": "^1.1.3", "clean-webpack-plugin": "^0.1.16", "compression": "^1.6.2", "connect-history-api-fallback": "^1.3.0", "css-loader": "^0.27.3", "ejs": "^2.5.6", "ejs-loader": "^0.3.0", "enzyme": "^2.8.0", "eslint": "^3.18.0", "eslint-config-airbnb": "^14.1.0", "eslint-loader": "^1.7.0", "eslint-plugin-import": "^2.2.0", "eslint-plugin-jsx-a11y": "^4.0.0", "eslint-plugin-react": "^6.10.3", "extract-loader": "^0.1.0", "extract-text-webpack-plugin": "^1.0.1", "file-loader": "^0.10.1", "fs": "0.0.2", "html-loader": "^0.4.5", "html-webpack-plugin": "^2.28.0", "ip": "^1.1.5", "json-loader": "^0.5.4", "jsx-loader": "^0.13.2", "koa": "^2.2.0", "koa-etag": "^3.0.0", "koa-fresh": "0.0.3", "koa-gzip": "^0.1.0", "koa-route": "^3.2.0", "koa-static": "^3.0.0", "koa-webpack-dev-middleware": "^1.4.5", "koa-webpack-hot-middleware": "^1.0.3", "less": "^2.7.2", "less-loader": "^4.0.2", "less-plugin-npm-import": "^2.1.0", "minimist": "^1.2.0", "mkdirp": "^0.5.1", "modernizr-webpack-plugin": "^1.0.5", "nodemon": "^1.11.0", "path": "^0.12.7", "postcss": "^5.2.16", "postcss-color-function": "^3.0.0", "postcss-color-rebeccapurple": "^2.0.1", "postcss-loader": "^1.3.3", "postcss-simple-vars": "^3.1.0", "precss": "^1.4.0", "raw-loader": "^0.5.1", "react-hot-loader": "^3.0.0-beta.6", "react-socket-io": "^0.2.4", "react-transform-hmr": "^1.0.4", "source-map-loader": "^0.2.0", "stats-webpack-plugin": "^0.6.0", "style-loader": "^0.16.1", "ts-loader": "^2.0.3", "url-loader": "^0.5.8", "webpack": "^1.14.0", "webpack-bundle-analyzer": "^2.3.1", "webpack-hot-middleware": "^2.17.1" } }

heianqishizhisuiyuan avatar Oct 16 '17 03:10 heianqishizhisuiyuan

tim 20171016114504

heianqishizhisuiyuan avatar Oct 16 '17 04:10 heianqishizhisuiyuan

哥们, 你找到解决办法了吗

zhoubopro avatar Apr 19 '18 11:04 zhoubopro