Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装完依赖, npm start 还是不能正常运行, npm run build 也报错 #24

Open
AIREM-Richard opened this issue May 3, 2019 · 4 comments · May be fixed by #84
Open

安装完依赖, npm start 还是不能正常运行, npm run build 也报错 #24

AIREM-Richard opened this issue May 3, 2019 · 4 comments · May be fixed by #84

Comments

@AIREM-Richard
Copy link

克隆项目, npm安装后, npm run start(直接跳到ykit.js) 和 npm run build( Cannot read property 'properties' of undefined)均不行.
npm install -g ykit 还是不行.
image

我全局安装了 ykit , npm start 还是只打开 ykit.js. 进程就终止了.
$ npm run build 也是报错. 我是windows 平台. 和平台有关系吗?

@AIREM-Richard
Copy link
Author

我知道怎么可以npm start 了, 把根目录的 ykit.js 改成 ykit.config.js. 但 npm run build 还不知怎么处理.

@fengdanbailu
Copy link

npm run start是当前目录的服务,不是jsonschema的服务;
npm run demo之后没有报错,但也没有启动服务;
npm run build报错

@Ninju
Copy link

Ninju commented Feb 20, 2020

I had the same problem. Possible solution in #46

@febaoshan
Copy link

febaoshan commented May 27, 2020

package.json中script的写法问题,我改了之后就可以正常执行了。可以参照如下内容修改:

{
  "name": "json-schema-editor-visual",
  "version": "1.1.1",
  "description": "jsonschema editor",
  "main": "package/index.js",
  "license": "MIC",
  "scripts": {
    "start": "ykit s -p 8082",
    "demo": "set NODE_ENV='production' && ykit pack -m",
    "build": "set NODE_ENV='production' && webpack"
  },
  "dependencies": {
    "antd": "^3.1.6",
    "brace": "^0.10.0",
    "generate-schema": "^2.6.0",
    "moox": "^1.0.2",
    "react-redux": "^5.0.6",
    "underscore": "^1.8.3"
  },
  "devDependencies": {
    "autoprefixer": "^7.2.1",
    "babel-cli": "^6.26.0",
    "babel-core": "^6.26.0",
    "babel-loader": "^7.1.4",
    "babel-plugin-import": "^1.7.0",
    "babel-plugin-transform-class-properties": "^6.24.1",
    "babel-preset-env": "^1.6.1",
    "babel-preset-react": "^6.24.1",
    "babel-preset-react-app": "^3.1.0",
    "cross-env": "^5.1.1",
    "css-loader": "^0.28.11",
    "extract-text-webpack-plugin": "^4.0.0-beta.0",
    "less": "^2.7.2",
    "less-loader": "^4.1.0",
    "react-addons-perf": "^15.4.2",
    "style-loader": "^0.20.3",
    "webpack": "4.20.2",
    "webpack-cli": "3.1.1",
    "ykit-config-antd": "^1.2.0",
    "ykit": "^0.8.13"
  }
}

@YuJianghao YuJianghao linked a pull request Sep 5, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants