http-vue-loader + babel-standalone + RequireJS
Open here or clone repo and serve
index.html
via a Web server.
http-vue-loader + babel-standalone + RequireJS ✨
License: MIT License
http-vue-loader + babel-standalone + RequireJS
Open here or clone repo and serve
index.html
via a Web server.
i change mian.js
, then dont work.
before:
'http-vue-loader':
'https://cdn.rawgit.com/chitoku-k/http-vue-loader/bc8e142332b8f396715ec3fc61fbad03ae2a8040/src/httpVueLoader'
after: dont work version
'http-vue-loader': '../../node_modules/http-vue-loader/src/httpVueLoader'
and i make package.json.
"dependencies": {
"http-vue-loader": "^1.3.5"
}
components/homomaid.vue
<template>
<div class="wrapper">
<FooBar />
</div>
</template>
<script lang="babel">
import FooBar from 'component!components/fooBar'
export default {
components: {
FooBar
}
}
</script>
Error Message in console
vue.js:597 [Vue warn]: Unknown custom element: <foobar> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
The error message is:
Uncaught Error: Load timeout for modules: babel!app_unnormalized2,babel!app,babel!router.
I downloaded mian's dependency. The error message is:
Unhandled promise rejection SyntaxError: Unexpected reserved word
at Function (native)
at Object.ScriptContext.compile (http://localhost:6300/homomaid.vue/js/libs/copy/httpVueLoader.js:161:17)
at Object.Component.compile (http://localhost:6300/homomaid.vue/js/libs/copy/httpVueLoader.js:335:44)
at http://localhost:6300/homomaid.vue/js/libs/copy/httpVueLoader.js:388:38
at http://localhost:6300/homomaid.vue/js/libs/node_modules/babel-polyfill/dist/polyfill.min.js:2:29463
at http://localhost:6300/homomaid.vue/js/libs/node_modules/babel-polyfill/dist/polyfill.min.js:2:29572
at MutationObserver.n.exports.f (http://localhost:6300/homomaid.vue/js/libs/node_modules/babel-polyfill/dist/polyfill.min.js:1:19861)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.