GithubHelp home page GithubHelp logo

wangtunan / vue-mooc Goto Github PK

View Code? Open in Web Editor NEW
221.0 8.0 72.0 27.14 MB

:beginner:使用Vue3.0全家桶+TS+Jest重构慕课网PC端

License: ISC License

JavaScript 1.76% HTML 5.28% Vue 69.91% SCSS 4.57% TypeScript 18.48%
vue vue-mooc typescript jest vue-test-utils

vue-mooc's Issues

vue版本问题

直接运行,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)

请问是否版本问题

是否有响应式布局改进计划

间接试了一下好像不支持响应式布局,移动端效果有点惨,当然被高仿的慕课网也不支持响应式布局,这个“特性”也是要高仿的嘛

兄弟 这克隆下来运行直接报错。。

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'

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.