wangtunan / vue-mooc Goto Github PK
View Code? Open in Web Editor NEW:beginner:使用Vue3.0全家桶+TS+Jest重构慕课网PC端
License: ISC License
:beginner:使用Vue3.0全家桶+TS+Jest重构慕课网PC端
License: ISC License
直接运行,node 版本 14,"vue": "^3.0.0",编译失败,提示 ...vue" has no exported member 'ref'. Did you mean '$ref'"
vue版本改为"vue": "3.0.0"后,编译成功,有以下warning:
warning in ./src/layouts/index.vue?vue&type=template&id=699834c3&scoped=true
web_1 |
web_1 | "export 'createElementBlock' (imported as '_createElementBlock') was not found in 'vue'
web_1 |
web_1 | warning in ./src/views/user/log/index.vue?vue&type=template&id=da44cfc6&scoped=true
web_1 |
web_1 | "export 'createElementVNode' (imported as '_createElementVNode') was not found in 'vue'
web_1 |
web_1 | warning in ./src/views/user/index.vue?vue&type=template&id=4498f7b0&scoped=true
web_1 |
web_1 | "export 'normalizeClass' (imported as '_normalizeClass') was not found in 'vue'
web_1 |
web_1 | warning in ./src/layouts/index.vue?vue&type=template&id=699834c3&scoped=true
web_1 |
web_1 | "export 'normalizeStyle' (imported as '_normalizeStyle') was not found in 'vue'
打开页面错误内容为
TypeError: Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"]) is not a function. (In 'Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])("li", {
class: "tag-item"
}, "Vue", -1
/* HOISTED */
)', 'Object(vue__WEBPACK_IMPORTED_MODULE_0__["createElementVNode"])' is an instance of Object)
请问是否版本问题
1
挺好的项目啊,,放弃更新了可惜了
如题
Module '"../../../node_modules/vue/dist/vue"' has no exported member 'ref'.
38 |
39 | <script lang="ts">
40 | import { defineComponent, ref, onBeforeMount } from 'vue'
| ^^^
41 | import { getFooterLink } from '@/api/common'
42 | import { FooterLinkConfig } from '@/types'
43 | import { ERR_OK } from '@/api/config'
这个vue3.0的项目会像2.x一样有一个文档吗
间接试了一下好像不支持响应式布局,移动端效果有点惨,当然被高仿的慕课网也不支持响应式布局,这个“特性”也是要高仿的嘛
我正在基于这个项目前端编写后台接口,admin管理后台。 有兴趣继续完善前台页面,一起合作开发,作为https://github.com/mtianyan/OnlineMooc 的船新版本的合伙人么。微信: me_tianyan
请问这是开了新课程吗?哪里可以看到呢?
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.