GithubHelp home page GithubHelp logo

wenzhixin / vue-auto-form Goto Github PK

View Code? Open in Web Editor NEW
40.0 4.0 9.0 512 KB

A vue2 component that helpers to easily create basic forms with automatic insert and update events, and automatic reactive validation.

Home Page: https://wenzhixin.github.io/vue-auto-form/

License: MIT License

JavaScript 29.47% HTML 0.75% Vue 69.78%
vue autoform form auto

vue-auto-form's Issues

Module build failed: Error: Couldn't find preset "es2015" relative to directory...

If I create a new project by doing "vue init webpack vue-auto-form-error", adding vue-auto-form to packages and creating a very simple component. I get the following error.

[tons@localhost vue-auto-form-error]$ npm run dev

[email protected] dev /home/tons/IdeaProjects/vue-auto-form-error
node build/dev-server.js

Starting dev server...

ERROR Failed to compile with 1 errors 7:32:38 PM

error in ./~/vue-auto-form/src/AutoForm.vue

Module build failed: Error: Couldn't find preset "es2015" relative to directory "/home/tons/IdeaProjects/vue-auto-form-error/node_modules/vue-auto-form"
at /home/tons/IdeaProjects/vue-auto-form-error/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map (native)
at OptionManager.resolvePresets (/home/tons/IdeaProjects/vue-auto-form-error/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (/home/tons/IdeaProjects/vue-auto-form-error/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (/home/tons/IdeaProjects/vue-auto-form-error/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init (/home/tons/IdeaProjects/vue-auto-form-error/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (/home/tons/IdeaProjects/vue-auto-form-error/node_modules/babel-core/lib/transformation/file/index.js:212:65)
at new File (/home/tons/IdeaProjects/vue-auto-form-error/node_modules/babel-core/lib/transformation/file/index.js:135:24)
at Pipeline.transform (/home/tons/IdeaProjects/vue-auto-form-error/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transpile (/home/tons/IdeaProjects/vue-auto-form-error/node_modules/babel-loader/lib/index.js:46:20)
at Object.module.exports (/home/tons/IdeaProjects/vue-auto-form-error/node_modules/babel-loader/lib/index.js:163:20)

@ .//vue-auto-form/src/AutoForm.vue 3:2-92
@ ./
/vue-auto-form/src/index.js
@ .//babel-loader/lib!.//vue-loader/lib/selector.js?type=script&index=0!./src/components/Hello.vue
@ ./src/components/Hello.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi ./build/dev-client ./src/main.js

Listening at http://localhost:8080

I can fix the above by adding babel-preset-es2015 as a dependency to package.json of that project. But should that really be nessecary. I mean isn't this a matter of configuring vue-auto-form properly?

Theme and locale

Hi
I,m trying to use your auto-form in my vue project,but I keep getting the error
"AutoForm.setTemplate is not a function and the same with setLocal is not a function " what am i doing wrong ? I followed your example in npm

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.