Giter Club home page Giter Club logo

crx-vue's Introduction

crx-vue手脚架

1.Project setup

yarn install
yarn run serve
yarn run build

打包好的dist直接打包成crx即可

2.server为服务器位置(koa2+typeorm+mongodb)

cd server
yarn
yarn run server

PS:先启动好服务,然后修改crx-vue/src/utils/config.ts中的服务的ip和端口;然后完成第1步,最后去chrome中打包成crx

3.开发中遇到的问题

  1. RepositoryNotFoundError: No repository for "User" was found. Looks like this entity is not registered in current "default" connection? at new RepositoryNotFoundError (C:\Users\Administrator\Desktop\crx-vue\server\node_modules_typeorm@0.2.18@typeorm\error\RepositoryNotFoundError.js:11:28) at EntityManager.getRepository (C:\Users\Administrator\Desktop\crx-vue\server\node_modules_typeorm@0.2.18@typeorm\entity-manager\EntityManager.js:555:19) at C:\Users\Administrator\Desktop\crx-vue\server\dist\controller\UserController.js:17:59 at Generator.next () at C:\Users\Administrator\Desktop\crx-vue\server\dist\controller\UserController.js:7:71 at new Promise () at __awaiter (C:\Users\Administrator\Desktop\crx-vue\server\dist\controller\UserController.js:3:12) at getUsers (C:\Users\Administrator\Desktop\crx-vue\server\dist\controller\UserController.js:16:16) at dispatch (C:\Users\Administrator\Desktop\crx-vue\server\node_modules_koa-compose@3.2.1@koa-compose\index.js:44:32) at next (C:\Users\Administrator\Desktop\crx-vue\server\node_modules_koa-compose@3.2.1@koa-compose\index.js:45:18)

把entity里面的类名改成小写开头,用tsc编译会发现实体类自动变成小写,导致对应的大写名找不到;

  1. TypeError: Cannot read property 'createValueMap' of u

把对应Entity的id改成@ObjectIdColumn

crx-vue's People

Contributors

nsguf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

torns unacez

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.